14 lines
500 B
Perl
Executable File
14 lines
500 B
Perl
Executable File
#!/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");
|