diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-09-25 02:27:57 +0000 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-09-25 02:31:49 +0000 |
commit | 121d6f029f4ebc205915bb5a0c74ecde7d874b32 (patch) | |
tree | d8a25a59746b269a47eb3d76ba3c48082ea6b92a /seafile/seafile.initd | |
parent | 5ed1ae372c629c87f79d7914d1520749ce82cd7c (diff) | |
download | apkbuilds-121d6f029f4ebc205915bb5a0c74ecde7d874b32.tar.gz apkbuilds-121d6f029f4ebc205915bb5a0c74ecde7d874b32.tar.bz2 apkbuilds-121d6f029f4ebc205915bb5a0c74ecde7d874b32.zip |
feat: Add some dependencies of seafile
Add initial setup for dependencies of seafile server
Diffstat (limited to 'seafile/seafile.initd')
-rw-r--r-- | seafile/seafile.initd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/seafile/seafile.initd b/seafile/seafile.initd new file mode 100644 index 0000000..b92a765 --- /dev/null +++ b/seafile/seafile.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +start() { + ebegin "Starting Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ + --group $seafile_group /usr/bin/seafile-admin start $seafile_opts +} + +stop() { + ebegin "Stopping Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin stop +} |