aboutsummaryrefslogtreecommitdiff
path: root/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd
blob: b78cf293aaaeefc22a44a1edc904d1546e82e231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
supervisor="supervise-daemon"

name="reddit-nextcloud-importer"
command="/usr/bin/python3"
command_args="-m reddit-nextcloud-importer -c ${client_id} -s ${client_secret} -u ${reddit_username} -p ${reddit_password} -P ${nextcloud_password} -U ${nextcloud_username} -o ${nextcloud_host}"
command_background="yes"

#output_log="/var/log/$name/$name.log"
#error_log="/var/log/$name/$name.err"
supervise_daemon_args="--user www-data:www-data"
pidfile="/run/$name.pid"


depend() {
	use net
}