Commit 93107498c2dc4d7726ebfe60a6747c44de855a42
1 parent
32ee17c103
Exists in
master
komodo-gateway systemd service
Showing 1 changed file with 19 additions and 0 deletions Side-by-side Diff
centos-after-install.sh
... | ... | @@ -62,5 +62,24 @@ ExecStart=/usr/local/sbin/peervpn /etc/peervpn/%i.conf |
62 | 62 | WantedBy=multi-user.target |
63 | 63 | EOF |
64 | 64 | |
65 | +sudo tee /etc/systemd/system/komodo-gateway@.service << EOF | |
66 | +[Unit] | |
67 | +Description=Komodo Gateway- %i | |
68 | +After=syslog.target network.target komodo-core.service | |
69 | + | |
70 | +[Service] | |
71 | +Environment=KOMODO_DEBUG_MODEM="1" | |
72 | +Type=simple | |
73 | +WorkingDirectory=/home/komodo/gateways/%i | |
74 | +ExecStart=/usr/bin/node index.js | |
75 | +Restart=always | |
76 | +User=komodo | |
77 | +Group=komodo | |
78 | +StandardError=journal | |
79 | + | |
80 | +[Install] | |
81 | +WantedBy=multi-user.target | |
82 | +EOF | |
83 | + | |
65 | 84 | sudo systemctl daemon-reload |
66 | 85 | sudo systemctl enable peervpn@tektrans |