diff options
Diffstat (limited to 'abs/extra/apcupsd/apcupsd.install')
-rw-r--r-- | abs/extra/apcupsd/apcupsd.install | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/abs/extra/apcupsd/apcupsd.install b/abs/extra/apcupsd/apcupsd.install index 3f1e6b2..06eeee4 100644 --- a/abs/extra/apcupsd/apcupsd.install +++ b/abs/extra/apcupsd/apcupsd.install @@ -1,24 +1,15 @@ -# This is a default template for a post-install scriptlet. You can -# remove any functions you don't need (and this header). - -# arg 1: the new package version post_install() { add_service.sh apcupsd - /sbin/sv start apcupsd + sv start apcupsd + systemd-tmpfiles --create apcupsd.conf } -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { post_install } -# arg 1: the old package version post_remove() { - /sbin/sv stop apcupsd + sv stop apcupsd remove_service.sh apcupsd } -op=$1 -shift -$op $* |