FreeBSD Ports

sysutils/stalepid 1.0.2_1

Check for stale pid files and remove them

Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
sysutils
Package size
5.4 KiB, 6.9 KiB installed

Description

The stalepid utility was developed to facilitate the startup of servers that write their process ID to a file and refuse to start if that file exists (e.g. when the process was last terminated by an unclean shutdown, or simply killed without given the chance to clean up the process ID file). The stalepid utility is used to check for and possibly remove those stale process ID files. Upon its invocation, stalepid checks for the following conditions:

  • the file specified by the pidfile argument exists;
  • it contains a single line, and the line contains a single number;
  • there is no process with the process ID specified in the file, or if there is one, it is not named processname.

If all those conditions are met, the stalepid utility will remove the file specified by the pidfile argument, thus allowing the next invocation of the server to proceed normally.

Install

As a binary package — by origin, or by package name:

pkg install sysutils/stalepid
pkg install stalepid

From the ports tree:

cd /usr/ports/sysutils/stalepid/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	stalepid>0:sysutils/stalepid

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.0.2_11.0.2_11.0.21.0.2_11.0.2_1
FreeBSD:14:quarterly1.0.2_11.0.2_1n/a1.0.2_11.0.2_1
FreeBSD:15:latest1.0.2_11.0.2_1n/a1.0.2_11.0.2_1
FreeBSD:15:quarterly1.0.2_11.0.2_1n/an/an/a
FreeBSD:16:latest1.0.2_11.0.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

All run dependencies 2

No port depends on this one.

Configuration

No options to configure.

USES
perl5 shebangfix uidfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
stalepid-1.0.2.tar.gz6059b5281e67d799973f73392eafbef62ec2571d801f9c16e16fc579c663407eea1c
Master sites 1
  • https://devel.ringlet.net/files/sys/stalepid/

Commit history 0

No commits in the history this site was built from.