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'
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
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