-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgrapheqd.openrc
More file actions
executable file
·37 lines (32 loc) · 878 Bytes
/
Copy pathgrapheqd.openrc
File metadata and controls
executable file
·37 lines (32 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/sbin/openrc-run
: ${GRAPHEQD_PIDFILE:="${RC_PREFIX%/}/run/${RC_SVCNAME}.pid"}
: ${GRAPHEQD_USERNAME:="nobody"}
description="Graphical equalizer daemon"
command="${RC_PREFIX%/}/usr/local/sbin/grapheqd}"
pidfile="$GRAPHEQD_PIDFILE"
command_args="-p '$pidfile' -u '$GRAPHEQD_USERNAME'"
if [ -n "$GRAPHEQD_PROGRAM" ]; then
command_args="$command_args -e '$GRAPHEQD_PROGRAM'"
fi
if [ -n "$GRAPHEQD_ADDRESS" ]; then
command_args="$command_args -l '$GRAPHEQD_ADDRESS'"
fi
if [ -n "$GRAPHEQD_RADDRESS" ]; then
command_args="$command_args -r '$GRAPHEQD_RADDRESS'"
fi
if [ -n "$GRAPHEQD_SOUNDCARD" ]; then
command_args="$command_args -s '$GRAPHEQD_SOUNDCARD'"
fi
if [ -n "$GRAPHEQD_ARGS" ]; then
command_args="$command_args $GRAPHEQD_ARGS"
fi
depend() {
need localmount
after bootmisc
after alsasound
}
start_pre() {
if [ -e "$pidfile" ]; then
rm "$pidfile"
fi
}