Commit de1e5ce87028b6e0c747ba4b8aa74cc7eeb7d322
1 parent
4bcb6cebd6
Exists in
master
Typo
Showing 1 changed file with 19 additions and 0 deletions Side-by-side Diff
examples/systemd/komodo-modem@.service
... | ... | @@ -0,0 +1,19 @@ |
1 | +[Unit] | |
2 | +Description=Komodo Modem - %i | |
3 | +After=syslog.target network.target | |
4 | + | |
5 | +[Service] | |
6 | +Type=simple | |
7 | +Environment=NODE_ENV=production | |
8 | +WorkingDirectory=/home/komodo/modems/%i | |
9 | +ExecStart=/usr/bin/node index.js | |
10 | +ExecStartPre=/usr/bin/stat /dev/tty%i | |
11 | +ExecStopPost=rm /home/komodo/modems/%i/pid.txt | |
12 | +Restart=always | |
13 | +RestartSec=60 | |
14 | +User=komodo | |
15 | +Group=komodo | |
16 | +StandardError=journal | |
17 | + | |
18 | +[Install] | |
19 | +WantedBy=multi-user.target |