Linux Service Creation: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "===Raspbian|Ubuntu|Debian=== <code>/etc/systemd/system/demod.service </code> <source lang="ini"> [Unit] Description=Chorke Academia amqpd app [Service] WorkingDirectory=/opt...")
 
Line 1: Line 1:
===Raspbian|Ubuntu|Debian===
===Raspbian | Ubuntu | Debian===
<code>/etc/systemd/system/demod.service </code>
<code>/etc/systemd/system/demod.service </code>
<source lang="ini">
<source lang="ini">
[Unit]
[Unit]
Description=Chorke Academia amqpd app
Description=Academia AMQPD Daemon
   
   
[Service]
[Service]

Revision as of 10:00, 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