Unit file e wrapper

This commit is contained in:
torn 2017-01-20 13:25:42 +01:00
parent 4cf0a82f04
commit ada4c418f6
2 changed files with 24 additions and 0 deletions

11
Signal-Server.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# Simple wrapper for Signal-Server
#
# (torn, 2017-01-19)
jar="/home/cable/Signal-Server/target/TextSecureServer-1.21.jar"
conf="/home/cable/Signal-Server/config/production.yml"
/bin/java -jar "$jar" server "$conf"

13
signal-server.service Normal file
View file

@ -0,0 +1,13 @@
[Unit]
Description=Signal-Server service
After=network.target
[Service]
ExecStart=/home/cable/bin/Signal-Server.sh
Restart=on-failure
User=cable
Group=cable
[Install]
WantedBy=multi-user.target