28 lines
709 B
SYSTEMD
28 lines
709 B
SYSTEMD
[Unit]
|
|
Description=Api_skeleton API Daemon
|
|
Documentation=https://amuz.es
|
|
After=syslog.target network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=always
|
|
RestartSec=15
|
|
ExecStart=/opt/eden/service/api_skeleton/cur-dev/api_skeleton -C dev.yml -L /opt/eden/service/api_skeleton/logs/dev
|
|
WorkingDirectory=/opt/eden/service/api_skeleton/cur-dev
|
|
#ExecReload=/bin/kill -s HUP $MAINPID
|
|
TimeoutStartSec=5
|
|
|
|
|
|
# Disable timeout logic and wait until process is stopped
|
|
TimeoutStopSec=0
|
|
# SIGTERM signal is used to stop Minio
|
|
KillSignal=SIGTERM
|
|
SendSIGKILL=no
|
|
|
|
SuccessExitStatus=0
|
|
# kill only the docker process, not all processes in the cgroup
|
|
KillMode=process
|
|
|
|
[Install]
|
|
WantedBy=default.target |