RosaLinux Bugzilla – Attachment 4659 Details for
Bug 7975
Missing /lib/systemd/systemd-sysv-install
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
This script is called by "systemctl enable/disable" when the given unit is a SysV init.d script.
systemd-sysv-install (text/plain), 1.33 KB, created by
Sergei Trusov
on 2017-06-19 07:58:42 MSK
(
hide
)
Description:
This script is called by "systemctl enable/disable" when the given unit is a SysV init.d script.
Filename:
MIME Type:
Creator:
Sergei Trusov
Created:
2017-06-19 07:58:42 MSK
Size:
1.33 KB
patch
obsolete
>#!/bin/sh ># This script is called by "systemctl enable/disable" when the given unit is a ># SysV init.d script. It needs to call the distribution's mechanism for ># enabling/disabling those, such as chkconfig, update-rc.d, or similar. This ># can optionally take a --root argument for enabling a SysV init script ># in a chroot or similar. >set -e > >usage() { > echo "Usage: $0 [--root=path] enable|disable|is-enabled <sysv script name>" >&2 > exit 1 >} > ># parse options >eval set -- "$(getopt -o r: --long root: -- "$@")" >while true; do > case "$1" in > -r|--root) > ROOT="$2" > shift 2 ;; > --) shift ; break ;; > *) usage ;; > esac >done > >if [ -n "$ROOT" ] && [ "$ROOT" != "/" ]; then > CHROOT="chroot '$ROOT'" >fi > >NAME="$2" >[ -n "$NAME" ] || usage > >case "$1" in > enable) > # call the command to enable SysV init script $NAME here > # (consider optional $ROOT) > $CHROOT /sbin/chkconfig --add $NAME > ;; > disable) > # call the command to disable SysV init script $NAME here > # (consider optional $ROOT) > $CHROOT /sbin/chkconfig --del $NAME > ;; > is-enabled) > # exit with 0 if $NAME is enabled, non-zero if it is disabled > # (consider optional $ROOT) > ls $ROOT/etc/rc.d/rc[S5].d/S??$NAME >/dev/null 2>/dev/null > ;; > *) > usage ;; >esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7975
: 4659