starts the service. A second call to start will complain that the
program is already running.

During its execution, mydaemon will simply write a new number to
/tmp/counter every second, until it reaches 5. Then, an exception
will be thrown. This exception will be caught by hdaemonize, and
logged to /var/log/daemon.log or similar (this is depends on how
syslog works on your platorm). log (show i) will leave messages
in the same file.

When the exception is thrown, the program will be restared in 5
seconds, and will start counting from 0 again.

The following commands are also made available:

# mydaemon stop
# mydaemon restart

Finally, mydaemon drops privileges. By default it changes the
effective user and group ids to those of the daemon user, but it
prefers to use those of mydaemon, if present.