summaryrefslogtreecommitdiff
path: root/sysutils/mgeupsd/files/patch-aa
blob: 1b73dbd127bdb2acf81a861f196c6a2d5b23e931 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- mgeupsd.c.old	Sat Dec 26 02:42:52 1998
+++ mgeupsd.c	Sat Mar 17 23:59:09 2001
@@ -33,9 +33,9 @@
 #define BS_TDP 12
 
 /* status file for init */
-#define PWRFILE "/etc/powerstatus"
+#define PWRFILE "/var/run/powerstatus"
 /* Linux usual */
-#define LOCKDIR "/var/lock"
+#define LOCKDIR "/var/run"
 #define RUNDIR	"/var/run"
 char lockfile[40] = {0,};
 char pidfile[40] = {0,};
@@ -640,7 +640,7 @@
 		  else
 		    {
 #ifndef TEST
-		      if (kill (init_pid, SIGPWR))
+		      if (kill (init_pid, SIGUSR2))
 			syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
 #endif
 		    }
@@ -677,7 +677,7 @@
 		      else
 			{
 #ifndef TEST
-			  if (kill (init_pid, SIGPWR))
+			  if (kill (init_pid, SIGINT))
 			    syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
 #endif
 			}
@@ -711,7 +711,7 @@
 		  else
 		    {
 #ifndef TEST
-		      if (kill (init_pid, SIGPWR))
+		      if (kill (init_pid, SIGHUP))
 			syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
 #endif
 		    }
@@ -758,4 +758,5 @@
 	    }
 	}			/* while(1) */
     }
+  return 0;
 }