Skip to content

Fix SysV pid_file to be consistent when ran from a differently named symlink#79

Merged
kardianos merged 1 commit intokardianos:masterfrom
jessecarbon:master
Nov 4, 2016
Merged

Fix SysV pid_file to be consistent when ran from a differently named symlink#79
kardianos merged 1 commit intokardianos:masterfrom
jessecarbon:master

Conversation

@jessecarbon
Copy link
Contributor

SysV init scripts are ran on boot from symlinks in /etc/rc.d/rc.X, where X is the runlevel. These symlinks are usually named something like S99foobar, which is a link to the real script foobar. This leads to differences in the pid_file filename and can lead to multiple processes running. By using readlink to get the actual destination filename, the pid_file name should always be consistent.

Resolves: #78

…symlink

SysV init scripts are ran on boot from symlinks in `/etc/rc.d/rc.X`, where
X is the runlevel. These symlinks are usually named something like
`S99foobar`, which is a link to the real script `foobar`. This leads to
differences in the pid_file filename and can lead to multiple processes
running. By using readlink to get the actual destination filename, the
pid_file name should always be consistent.

Resolves: kardianos#78
@kardianos kardianos merged commit 6a55aec into kardianos:master Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants