Browse Source

add systemd service

master
Inhji Y. 1 year ago
parent
commit
4f3d95118e
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      dagon.service

+ 16
- 0
dagon.service View File

@@ -0,0 +1,16 @@
[Unit]
Description=DAGON.fm

[Service]
Type=forking
User=dagon
Group=dagon
Restart=on-failure

EnvironmentFile=/home/dagon/.env
WorkingDirectory=/home/dagon/dagon/_build/prod/rel/dagon/bin
ExecStart=/home/dagon/dagon/_build/prod/rel/dagon/bin/dagon start
ExecStop=/home/dagon/dagon/_build/prod/rel/dagon/bin/dagon stop

[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save