~dricottone/huttese-apk

ref: 6e8b8060f28fade79d3413b9ebd06befc1e661df huttese-apk/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd -rw-r--r-- 404 bytes
6e8b8060 — Drew DeVault Add fcgiwrap 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
name="srht-worker"
description="builds.sr.ht build worker"

depend() {
	need net
}

start() {
	ebegin "Starting $name"
	start-stop-daemon --background --make-pidfile --pidfile /run/$name.pid -u builds \
		--exec /usr/bin/builds.sr.ht-worker
	eend $?
}

stop() {
	ebegin "Stopping $name"
	start-stop-daemon --stop --exec /usr/bin/builds.sr.ht-worker --pidfile /run/$name.pid
	eend $?
}