forked from 9001/copyparty
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopyparty
More file actions
27 lines (23 loc) · 752 Bytes
/
copyparty
File metadata and controls
27 lines (23 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/openrc-run
# this will start `/usr/local/bin/copyparty-sfx.py`
# and share '/mnt' with anonymous read+write
#
# installation:
# cp -pv copyparty /etc/init.d && rc-update add copyparty
#
# you may want to:
# change '/usr/bin/python' to another interpreter
# change '/mnt::rw' to another location or permission-set
# use a config file instead of command arguments, e.g.:
# command_args="-c /etc/copyparty.conf"
name="$SVCNAME"
command_background=true
extra_commands="checkconfig"
pidfile="/var/run/$SVCNAME.pid"
command="/usr/bin/python3 /usr/local/bin/copyparty-sfx.py"
command_args="-q -v /mnt::rw"
checkconfig() {
ebegin "Checking $RC_SVCNAME configuration"
$command $command_args --exit cfg
eend $?
}