14 lines
500 B
Plaintext
14 lines
500 B
Plaintext
|
#!/usr/bin/perl -w
|
||
|
# Smeadmin - evenement appele par logrotate
|
||
|
# Copyright (C) 2006
|
||
|
# This file is distributed under the GPL license.
|
||
|
# Landry Breuil <landry@firewall-services.com>, 2006.
|
||
|
|
||
|
#------------------------------------------------------------
|
||
|
# On envoie le signal SIGUSR1 a smeadmind pour qu'il parse les logs
|
||
|
#------------------------------------------------------------
|
||
|
|
||
|
exec("/usr/bin/killall", "-USR1", "smeadmind");
|
||
|
# NOTREACHED
|
||
|
die("Failed to exec /usr/bin/killall -USR1 smeadmind");
|