How handle rm in pre-service #409
-
Do I need to make a script that check if the file exists before deleting it? Original service uses superd that has "pre-command" and "on-failure" which can be used to send a notification or something for failed user services. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello. From XDG Base Directory Specification:
|
Beta Was this translation helpful? Give feedback.
-
"rm -f" doesn't fail if the file does not exist. |
Beta Was this translation helpful? Give feedback.
You should create a script for bonsaid service which does the remove trick on every startup, Something like this: