17
17
`pidfile_path` is the key to all four of them. Usually, you simply pass it the
18
18
name of a service. It then gets the configured name for the current instance
20
20
instance name with the service name.
22
22
>>> from canonical.lazr.pidfile import (
23
23
... pidfile_path, make_pidfile, remove_pidfile, get_pid)
26
26
>>> pidfile_path('nuts') == '/var/tmp/%s-nuts.pid' % config.instance_name