set proctitle on daemon

This commit is contained in:
Oliver Gorwits
2014-08-05 22:14:58 +01:00
parent c75c48a558
commit f51941076f
3 changed files with 14 additions and 5 deletions

View File

@@ -69,6 +69,7 @@ Daemon::Control->new({
sub restarter {
my ($daemon, @program_args) = @_;
$0 = 'netdisco-daemon';
my $child = fork_and_start($daemon, @program_args);
exit(1) unless $child;