From 22940b398010e3b653052dd27d0ac6fddbdae83c Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 27 Jun 2020 23:22:15 +0300 Subject: update --- docs/wiki/system/service-management.html | 99 -------------------------------- docs/wiki/system/service-management.txt | 81 -------------------------- 2 files changed, 180 deletions(-) delete mode 100644 docs/wiki/system/service-management.html delete mode 100644 docs/wiki/system/service-management.txt (limited to 'docs/wiki/system') diff --git a/docs/wiki/system/service-management.html b/docs/wiki/system/service-management.html deleted file mode 100644 index da639fb..0000000 --- a/docs/wiki/system/service-management.html +++ /dev/null @@ -1,99 +0,0 @@ - - - -Service Management | Carbs Linux - - - - - -

Carbs Linux - a simple busybox linux distribution

-
-

Carbs Linux uses busybox-runit by default, but the repository additionally has the -original runit and sysmgr. You can install either with kiss b runit; kiss i runit -or kiss b sysmgr; kiss i sysmgr.

- -

runit

- -

Enabling a Service

- -
ln -sf /etc/sv/acpid /var/service
-
- -

Disabling a Service

- -
unlink /var/service/acpid
-
- -

Starting a Service

- -
sv start acpid
-
- -

Stopping a Service

- -
sv stop acpid
-
- -

For more information refer to the sv --help output. Also check out the sv(8) -manual page if you have installed the runit package.

- -

sysmgr

- -

sysmgr is POSIX-sh service supervisor written by me. Its usage resembles -runit. The biggest difference is that sysmgr uses service files instead -of directories with run scripts inside.

- -

svctl

- -

svctl is the equivalant of sv for sysmgr. You can run the above commands for -runit and use svctl instead of sv. Those would be as follows.

- -

Enabling a Service

- -
ln -sf /etc/sysmgr/acpid /var/sysmgr
-
- -

Disabling a Service

- -
unlink /var/sysmgr/acpid
-
- -

Starting a Service

- -
svctl start acpid
-
- -

Stopping a Service

- -
svctl stop acpid
-
- -

Switching from runit

- -

Switching from runit is fairly easy. You can run the following commands to get -started with sysmgr.

- -
# Create the directories if you haven't yet
-mkdir -p /var/sysmgr /etc/sysmgr
-
-# Copy all of the run scripts to /etc/sysmgr
-set -- /etc/sv/*
-for service; do cp "$service/run" "/etc/sysmgr/${service##*/}" ; done
-
-# Link all enabled services
-set -- /var/service/*
-for service; do ln -sf /etc/sysmgr/${service##*/} /var/sysmgr ; done
-
-View Page Source
- - - - diff --git a/docs/wiki/system/service-management.txt b/docs/wiki/system/service-management.txt deleted file mode 100644 index 2133ea5..0000000 --- a/docs/wiki/system/service-management.txt +++ /dev/null @@ -1,81 +0,0 @@ - -Carbs Linux uses `busybox-runit` by default, but the repository additionally has the -original `runit` and `sysmgr`. You can install either with `kiss b runit; kiss i runit` -or `kiss b sysmgr; kiss i sysmgr`. - -runit -===== - -**Enabling a Service** - - ln -sf /etc/sv/acpid /var/service - -**Disabling a Service** - - unlink /var/service/acpid - -**Starting a Service** - - sv start acpid - -**Stopping a Service** - - sv stop acpid - -For more information refer to the `sv --help` output. Also check out the `sv(8)` -manual page if you have installed the `runit` package. - - -sysmgr -====== - -[sysmgr] is POSIX-sh service supervisor written by me. Its usage resembles -`runit`. The biggest difference is that `sysmgr` uses service files instead -of directories with run scripts inside. - - -svctl ------ - -`svctl` is the equivalant of `sv` for sysmgr. You can run the above commands for -`runit` and use `svctl` instead of `sv`. Those would be as follows. - - -**Enabling a Service** - - ln -sf /etc/sysmgr/acpid /var/sysmgr - -**Disabling a Service** - - unlink /var/sysmgr/acpid - -**Starting a Service** - - svctl start acpid - -**Stopping a Service** - - svctl stop acpid - - -Switching from runit --------------------- - -Switching from `runit` is fairly easy. You can run the following commands to get -started with `sysmgr`. - - - # Create the directories if you haven't yet - mkdir -p /var/sysmgr /etc/sysmgr - - # Copy all of the run scripts to /etc/sysmgr - set -- /etc/sv/* - for service; do cp "$service/run" "/etc/sysmgr/${service##*/}" ; done - - # Link all enabled services - set -- /var/service/* - for service; do ln -sf /etc/sysmgr/${service##*/} /var/sysmgr ; done - - - -[sysmgr]: https://github.com/cemkeylan/sysmgr -- cgit v1.2.3