User Tools

Site Tools


mywiki:linux:ubuntu_16.04

This is an old revision of the document!


—++ create a customized daemon via systemd

 Create a ppa.service under folder /etc/systemd/system
 sudo chmod +x /etc/systemd/system/ppa.service
 sudo systemctl enable ppa
 sudo systemctl status ppa
 sudo systemctl daemon-reload
[Unit]
Description=ppa deamon
After=mysql.service
After=network.service

[Service]
#ExecStart= /testserver/d.sh
ExecStart=  /testserver/dispatch/dispatch.py

[Install]
WantedBy=default.target
mywiki/linux/ubuntu_16.04.1482044175.txt.gz · Last modified: (external edit)