~dricottone/huttese-apk

ref: f26e327f64d7eb57decdd2d57f07bf2d3da1baba huttese-apk/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd -rw-r--r-- 404 bytes
f26e327f — Drew DeVault Initial pass on todo.sr.ht package 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 $?
}