Skip to content

Instantly share code, notes, and snippets.

@horodchukanton
Last active December 31, 2016 08:08
Show Gist options
  • Save horodchukanton/162c8c32be33b34a2c714f56f52b9dd1 to your computer and use it in GitHub Desktop.
Save horodchukanton/162c8c32be33b34a2c714f56f52b9dd1 to your computer and use it in GitHub Desktop.
SystemD Unit for ABillS websocket backend server
[Unit]
Description=ABillS Websocket Server
After=network.target
After=mysql.service
Requires=mysql.service
[Service]
Type=forking
PIDFile=/usr/abills/var/log/websocket_backend.pid
ExecStartPre=/bin/chown -R nobody /usr/abills/var/
ExecStart=/usr/abills/libexec/websocket_backend.pl -d
ExecReload=/usr/abills/libexec/websocket_backend.pl stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment