diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2012-08-18 10:06:51 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-08-20 16:25:49 +0200 |
commit | 137302c545006f0c4e89616f1c0e6cc2a7294969 (patch) | |
tree | 849ee9a5bf0eefb46ac2a16b24dc3f484c1d564b /arch-daemons | |
parent | bf6c04d342f258a0caf26291fb06d036c5c902a7 (diff) |
Add special target for rc.conf DAEMONS
This (re)introduces arch-daemons.target, so a simple
systemctl mask arch-daemons.target
will suppress the starting of DAEMONS from rc.conf.
Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Diffstat (limited to 'arch-daemons')
-rwxr-xr-x | arch-daemons | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch-daemons b/arch-daemons index edb4dcb..b4398b4 100755 --- a/arch-daemons +++ b/arch-daemons @@ -47,18 +47,18 @@ for daemon in /etc/rc.d/*; do create_unit "${daemon##*/}".service done -[[ -d $dest/multi-user.target.wants ]] || /bin/mkdir -p "$dest/multi-user.target.wants" +[[ -d $dest/arch-daemons.target.wants ]] || /bin/mkdir -p "$dest/arch-daemons.target.wants" for daemon in "${DAEMONS[@]}"; do service="$daemon.service" case ${daemon:0:1} in '!') continue ;; '@') create_unit "${service:1}" "${deps[@]}" - ln -s "../${service:1}" "$dest/multi-user.target.wants" + ln -s "../${service:1}" "$dest/arch-daemons.target.wants" ;; *) create_unit "$service" "${deps[@]}" deps+=("$service") - ln -s "../$service" "$dest/multi-user.target.wants" + ln -s "../$service" "$dest/arch-daemons.target.wants" ;; esac done |