totalled has asked for the wisdom of the Perl Monks concerning the following question:

Hello, New to PerlMonks! Not new to Perl, but new to using scripts as daemons and have a question that likely has a simple answer;
I have a script that is successfully initializing as a background process, but when viewing the list of processes it appears as "Perl" under the Process Name. Is there any way to set this to something else? Thanks!

Replies are listed 'Best First'.
Re: Setting Daemon Name
by Fletch (Bishop) on May 24, 2010 at 16:15 UTC

    Depends on the OS; see perlvar for the $0 variable and give it a whirl.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Ahh. I had been setting that, but in the Fedora GUI it only shows what I set it to when hovering over it. When running ps aux, it shows what I want. Good enough for me! Thanks for the quick reply...and the -1 rep? LOL
        A change that went into 5.12 or will go into 5.14 makes assigning to $0 more encompassing on linux by using prctl(2).