Skip to content

jg1uaa/signal_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

signal_check

Description

a test code to receive signal

Usage

# signal_check

simply wait for signal and quit, the results will be stored in syslog.

Mar 14 19:52:00 framboise signal_check: signal 15
Mar 14 19:52:22 framboise signal_check: signal 1

thanks to Jan Pedersen's cpp-syslog.

Appendix

what signal will receive from init process when none received?

OpenBSD

invoke from /etc/rc.local

Mar 14 20:01:50 ik1-342-31132 signal_check: signal 1

SIGHUP received, and this cannot prevent nohup.

NetBSD

invoke from /etc/rc.local

Mar 14 20:30:45 netbsd-vm signal_check: signal 1

SIGHUP received, and this cannot prevent nohup.

FreeBSD

invoke from /etc/rc.local

Mar 15 21:12:56 freebsd-vm signal_check[834]: signal 1

SIGHUP received, and this cannot prevent nohup.

DragonFlyBSD

invoke from /etc/rc.local

Mar 15 21:26:20 dragonfly-vm signal_check: signal 1

SIGHUP received, and this cannot prevent nohup.

Slackware Linux

invoke from /etc/rc.d/rc.local

no signal received from init

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published