diff options
author | nroi | 2018-05-06 11:09:20 +0200 |
---|---|---|
committer | nroi | 2018-05-06 11:11:06 +0200 |
commit | bc3cb4bd6ca85dd4d4aff011006d868206e352e3 (patch) | |
tree | f0542cc02843c307ed29b9b1154890fed7c3cdfc /cpcache.service | |
parent | 0f4d4abdbe9ef444053b4f2643159391264b6b13 (diff) | |
download | aur-bc3cb4bd6ca85dd4d4aff011006d868206e352e3.tar.gz |
Add ExecStop
The default kill method does not cause a clean shutdown of the erlang
node. When running "systemctl restart cpcache", Erlang complains that a
node with the given name already exists.
Diffstat (limited to 'cpcache.service')
-rw-r--r-- | cpcache.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpcache.service b/cpcache.service index 05553c905bd2..d8fa6f5a8df3 100644 --- a/cpcache.service +++ b/cpcache.service @@ -7,11 +7,11 @@ Type=simple # Shutdown can be somewhat sluggish on low-end devices like the RPi. TimeoutSec=90 SuccessExitStatus=143 -KillMode=process User=cpcache Group=cpcache Environment="ELIXIR_ERL_OPTIONS=-sname cpcache -mnesia dir '/var/cache/cpcache/mnesia'" ExecStart=/usr/share/cpcache/bin/cpcache foreground +ExecStop=/usr/share/cpcache/bin/cpcache stop [Install] WantedBy=multi-user.target |