Ubuntu自定义服务开机自启
cat isoc.service
[Unit]
Description=isoc
After=local-fs.target network-online.target network.target
Wants=local-fs.target network-online.target network.target
[Service]
ExecStart=/data/isoc/installed/shell/ccheck.sh
[Install]
cp -f /data/user_data/opt/package/isoc/isoc.service /usr/lib/systemd/system/
systemctl start isoc && systemctl enable isoc