~dricottone/huttese-apk

ref: c8dc5dbdeb77e86f31196c180d77ca71abc9fc93 huttese-apk/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd -rw-r--r-- 404 bytes
c8dc5dbd — Drew DeVault Add prometheus-node-exporter package 5 years ago
                                                                                
1702be43 Drew DeVault
ca184b10 Drew DeVault
1702be43 Drew DeVault
ca184b10 Drew DeVault
1702be43 Drew DeVault
ca184b10 Drew DeVault
1702be43 Drew DeVault
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 $?
}