batch-secgen.service: added user & group to run service as

This commit is contained in:
thomashaw
2017-10-05 11:48:20 +01:00
parent 78ba59776a
commit 2a7229e6fa

View File

@@ -3,11 +3,13 @@ Description=Batch Processing Service (SecGen Project)
After=postgresql.service
[Service]
ExecStart=/usr/bin/ruby /opt/secgen/lib/batch/batch_secgen.rb
ExecStart=/usr/bin/ruby /home/secgen/SecGen/lib/batch/batch_secgen.rb start
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
WorkingDirectory=/opt/secgen
WorkingDirectory=/home/secgen/SecGen/
Restart=always
User=secgen
Group=secgen
[Install]
WantedBy=multi-user.target