Linux Service Creation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</source> | </source> | ||
==References== | ==References== |
Revision as of 10:04, 2 October 2019
Raspbian | Ubuntu | Debian
/etc/systemd/system/demod.service
[Unit]
Description=Academia AMQPD Daemon
[Service]
WorkingDirectory=/opt/chorke/academia/amqpd/usr/bin
ExecStart=/opt/chorke/academia/amqpd/usr/bin/amqpd
StandardOutput=syslog
Restart=always
RestartSec=10
User=www-data
KillSignal=SIGINT
SyslogIdentifier=amqpd
Environment=ACADEMIA_HOME=/opt/chorke/academia
Environment=AMQP_HOME=/opt/chorke/academia/amqpd
[Install]
WantedBy=multi-user.target