$ 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

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()