summaryrefslogtreecommitdiff
path: root/astro/squeuer/files/patch-etc::rc.d::S71squeuer.sh
blob: ca63e77cfab6f2d04ecea19eba0cd61e4a72a995 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$FreeBSD$

--- etc/rc.d/S71squeuer.sh.orig	Thu Oct 31 20:38:18 2002
+++ etc/rc.d/S71squeuer.sh	Thu Aug  7 12:25:20 2003
@@ -3,14 +3,16 @@
 # Squeuer
 #
 
-squeuer=/usr/local/bin/squeuer.pl
-pid_file=/var/run/squeuer.pid
+squeuer=%%PREFIX%%/sbin/squeuer
+squeuer_conf=%%PREFIX%%/etc/squeuer.conf
+pid_file=%%PIDDIR%%/squeuer.pid
+squeuer_user=squeuer
 
 SYSV3=1; export SYSV3
 
 case $1 in
 	start)	echo -n ' squeuer'
-		su squeuer -c $squeuer > $pid_file &
+		su $squeuer_user -c "$squeuer -f $squeuer_conf" > $pid_file &
 		;;
 
 	stop)	if [ -f $pid_file ]; then