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

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

supervise_daemon_args="--user www-data:www-data"
pidfile="/run/$name.pid"

depend() {
	use net
}