]> git.proxmox.com Git - pmg-api.git/blobdiff - src/bin/pmgpolicy
replace /var/run with /run
[pmg-api.git] / src / bin / pmgpolicy
index 9696629556ebcacac68c848dfa98caa30ac6a0c6..59d28f7d909672e6e4de624307da46513e622c2c 100755 (executable)
@@ -52,7 +52,7 @@ if (!GetOptions(%_opts)) {
     exit (-1);
 }
 
-$opt_pidfile = "/var/run/pmgpolicy.pid" if !$opt_pidfile;
+$opt_pidfile = "/run/pmgpolicy.pid" if !$opt_pidfile;
 $opt_max_dequeue = 0 if $opt_testmode;
 
 initlog('pmgpolicy', 'mail');
@@ -889,7 +889,7 @@ sub run_n_children {
     setup_fork_signal_mask(0); # unblocking signals for parent
 }
 
-# test sig_hup with: for ((;;)) ;do kill -HUP  `cat /var/run/pmgpolicy.pid`; done;
+# test sig_hup with: for ((;;)) ;do kill -HUP  `cat /run/pmgpolicy.pid`; done;
 # wrapper to avoid multiple calls to sig_hup
 sub sig_hup {
     my $self = shift;