/
snap
/
core18
/
2999
/
lib
/
systemd
/
/snap/core18/2999/lib/systemd
mkdir
upload
Name
Size
Mode
Actions
network/
-
0755
rm
system/
-
0755
rm
system-generators/
-
0755
rm
system-preset/
-
0755
rm
system-shutdown/
-
0755
rm
system-sleep/
-
0755
rm
libsystemd-shared-237.so
2367728
0644
edit
dl
rm
resolv.conf
699
0644
edit
dl
rm
set-cpufreq
1246
0755
edit
dl
rm
systemd
1620344
0755
edit
dl
rm
systemd-ac-power
6128
0755
edit
dl
rm
systemd-backlight
18416
0755
edit
dl
rm
systemd-binfmt
10304
0755
edit
dl
rm
systemd-cgroups-agent
10224
0755
edit
dl
rm
systemd-cryptsetup
26632
0755
edit
dl
rm
systemd-dissect
14408
0755
edit
dl
rm
systemd-fsck
18424
0755
edit
dl
rm
systemd-fsckd
22592
0755
edit
dl
rm
systemd-growfs
18496
0755
edit
dl
rm
systemd-hibernate-resume
10224
0755
edit
dl
rm
systemd-hostnamed
22592
0755
edit
dl
rm
systemd-initctl
14400
0755
edit
dl
rm
systemd-journald
129096
0755
edit
dl
rm
systemd-localed
34880
0755
edit
dl
rm
systemd-logind
219272
0755
edit
dl
rm
systemd-makefs
10224
0755
edit
dl
rm
systemd-modules-load
14400
0755
edit
dl
rm
systemd-networkd
1641552
0755
edit
dl
rm
systemd-networkd-wait-online
18504
0755
edit
dl
rm
systemd-quotacheck
10304
0755
edit
dl
rm
systemd-random-seed
10224
0755
edit
dl
rm
systemd-remount-fs
14400
0755
edit
dl
rm
systemd-reply-password
10224
0755
edit
dl
rm
systemd-resolved
383040
0755
edit
dl
rm
systemd-rfkill
18496
0755
edit
dl
rm
systemd-shutdown
43080
0755
edit
dl
rm
systemd-sleep
18496
0755
edit
dl
rm
systemd-socket-proxyd
22600
0755
edit
dl
rm
systemd-sulogin-shell
10304
0755
edit
dl
rm
systemd-sysctl
14400
0755
edit
dl
rm
systemd-sysv-install
1314
0755
edit
dl
rm
systemd-timedated
26688
0755
edit
dl
rm
systemd-timesyncd
38976
0755
edit
dl
rm
systemd-udevd
588224
0755
edit
dl
rm
systemd-update-utmp
14400
0755
edit
dl
rm
systemd-user-sessions
10224
0755
edit
dl
rm
systemd-veritysetup
10224
0755
edit
dl
rm
systemd-volatile-root
10224
0755
edit
dl
rm
Edit:
/snap/core18/2999/lib/systemd/systemd-sysv-install
(1314B)
#!/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 -eu usage() { echo "Usage: $0 [--root=path] enable|disable|is-enabled <sysv script name>" >&2 exit 1 } ROOT= # 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 NAME="${2:-}" run() { if [ -n "$ROOT" ] && [ "$ROOT" != "/" ]; then chroot "$ROOT" /usr/sbin/update-rc.d "$@" else /usr/sbin/update-rc.d "$@" fi } [ -n "$NAME" ] || usage case "$1" in enable) # call the command to enable SysV init script $NAME here.. run "$NAME" defaults run "$NAME" enable ;; disable) run "$NAME" defaults run "$NAME" disable ;; is-enabled) # exit with 0 if $NAME is enabled, non-zero if it is disabled ls "$ROOT"/etc/rc[S5].d/S??"$NAME" >/dev/null 2>&1 ;; *) usage ;; esac
Save
cmd:
run