20 lines
441 B
SYSTEMD
20 lines
441 B
SYSTEMD
|
[Unit]
|
||
|
Description=Ansible Semaphore
|
||
|
After=network.target
|
||
|
#Requires=mysql.service
|
||
|
#Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
# Modify these two values anda
|
||
|
Type=simple
|
||
|
User=semaphore
|
||
|
Group=semaphore
|
||
|
WorkingDirectory=/var/lib/semaphore
|
||
|
ExecStart=/usr/bin/semaphore server --config /etc/semaphore/config.json
|
||
|
Restart=always
|
||
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|