diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-embedded/scratchbox/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-embedded/scratchbox/files')
-rw-r--r-- | dev-embedded/scratchbox/files/scratchbox.rc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox/files/scratchbox.rc b/dev-embedded/scratchbox/files/scratchbox.rc new file mode 100644 index 000000000000..4e69793ccb64 --- /dev/null +++ b/dev-embedded/scratchbox/files/scratchbox.rc @@ -0,0 +1,23 @@ +#!/sbin/openrc-run + +depend() { + need localmount + use logger net +} + +start() { + test -x /opt/scratchbox/sbin/sbox_ctl || \ + eend 1 "scratchbox init script not found. Aborting" || return 1 + + /opt/scratchbox/sbin/sbox_ctl start + return $? +} + +stop() { + test -x /opt/scratchbox/sbin/sbox_ctl || \ + eend 1 "scratchbox init script not found. Aborting" || return 1 + + /opt/scratchbox/sbin/sbox_ctl stop + return $? +} + |