close
$ sudo vim /etc/systemd/system/startup.service
-----------------------------------------------
[Unit]
Description=Job that runs your user script
[Service]
ExecStart=/usr/local/bin/startup_service.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-----------------------------------------------
$ sudo systemctl daemon-reload
$ sudo systemctl enable startup.service
全站熱搜
留言列表