Re: [systemd-devel] Run cleanup service on stop

2015-11-04 Thread Kai Hendry
On Wed, 4 Nov 2015, at 05:41 PM, Andrei Borzenkov wrote: > Why? It sounds like exact use case for Pre/Post commands. Well, with long lines like: ExecStartPre=/bin/bash -c 'grep -q noclean /etc/webc/cmdline || for d in ~/{.mozilla,.cache,.adobe,.macromedia,Downloads}; do rm -vrf $d; done'

Re: [systemd-devel] Run cleanup service on stop

2015-11-04 Thread Andrei Borzenkov
03.11.2015 09:21, Kai Hendry пишет: Hi there guys, I have a service where it's important that it cleans up *after* it's run. In fact it's probably a good idea to make sure it's clean *before* it's run too. I got as far as: After=clean.service Requires=clean.service But that does not seem to

[systemd-devel] Run cleanup service on stop

2015-11-02 Thread Kai Hendry
Hi there guys, I have a service where it's important that it cleans up *after* it's run. In fact it's probably a good idea to make sure it's clean *before* it's run too. I got as far as: After=clean.service Requires=clean.service But that does not seem to clean on stop (say if the machine is