Browse Source

Systemd file

master
J. David Lee 4 years ago
parent
commit
05e68a8e59
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      systemd/am.service

+ 16
- 0
systemd/am.service View File

@ -0,0 +1,16 @@
[Unit]
Description=am
Requires=network.target
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
Type=simple
User=user
WorkingDirectory=/home/user/server/
ExecStart=/home/user/server/amserver -listen am.example.com:443
Restart=always
RestartSec=30
TimeoutStopSec=60
[Install]
WantedBy=default.target

Loading…
Cancel
Save