diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-23 18:45:30 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-23 18:45:30 +0300 |
commit | e4eeebc9a613b18c2b6d6d6c4c848d22db33df99 (patch) | |
tree | a430a0b02f493cdb79d30c7bba02d36fc29747c0 /core/baselayout/files | |
parent | 77ba5b46fb92db36a11e1d4dc45cb7d6a4a9a340 (diff) | |
download | repository-e4eeebc9a613b18c2b6d6d6c4c848d22db33df99.tar.gz |
baselayout: use clinst, remove install-sv
Diffstat (limited to 'core/baselayout/files')
-rwxr-xr-x | core/baselayout/files/install-sv | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/core/baselayout/files/install-sv b/core/baselayout/files/install-sv deleted file mode 100755 index 509b2516..00000000 --- a/core/baselayout/files/install-sv +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -e -# Carbs Linux service installer - -usage() { - printf '%s\n' \ - "usage: ${0##*/} [FILE...]" \ - "or: ${0##*/} [-a NAME FILE]" "" \ - "You can set the DESTDIR environment variable to set a different root." - exit 1 -} - -svname='' -case "$1" in - --help|-h|'') usage ;; - -a) [ "$#" -eq 3 ] || usage - svname=$2; shift 2 -esac - -for service; do - # Remove .run suffix and the directory name for service files. - sv=${svname:-${service%.run}} sv=${sv##*/} - - # Create the service directories and copy the service file to them. - mkdir -p "$DESTDIR/etc/sysmgr" "$DESTDIR/etc/sv/$sv" - cp "$service" "$DESTDIR/etc/sysmgr/$sv" - cp "$service" "$DESTDIR/etc/sv/$sv/run" - - # Set permissions for the services. - chmod 0755 "$DESTDIR/etc/sysmgr/$sv" "$DESTDIR/etc/sv/$sv/run" - - # Create supervise directories for runit. - ln -s "/run/runit/supervise.$sv" "$DESTDIR/etc/sv/$sv/supervise" - -done |