diff --git a/sausage_api.service b/sausage_api.service index 613aa83..23dd0dc 100644 --- a/sausage_api.service +++ b/sausage_api.service @@ -1,14 +1,15 @@ [Unit] Description=Slurm Account Usage API After=network.target [Service] User=sausage Group=sausage PIDFile=/var/tmp/sausage_api.pid ExecStart=/usr/bin/sausage-api ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID +ExecStopPost=/usr/bin/rm -f /dev/shm/sausagedb [Install] WantedBy=multi-user.target