Difference between revisions of "Command Reference- OpenBSD"
From Free Knowledge Base- The DUCK Project: information for everyone
(New page: ---- OPENBSD NOTES: Random Command Reference AUG 2005 ---- === COMMAND: procedure to restart common services === The linux shortcut of killall -HUP servicename is not avai...) |
|||
Line 1: | Line 1: | ||
---- | ---- | ||
− | OPENBSD NOTES: Random Command Reference AUG 2005 | + | <big>OPENBSD NOTES: Random Command Reference AUG 2005</big> |
---- | ---- | ||
Latest revision as of 17:51, 27 June 2007
OPENBSD NOTES: Random Command Reference AUG 2005
COMMAND: procedure to restart common services
The linux shortcut of killall -HUP servicename is not available in OpenBSD. THerefore it is necessary to use the process id (pid) if issueing a SIGHUP.
restart syslogd
kill -HUP `cat /var/run/syslog.pid`
COMMAND: tar and compress
OpenBSD tar switches are a little different from Linux tar switches. recommended way to tar and compress a directory, preserve permissions
tar -p -zcvf /var/named/slave.tgz /var/named/slave
COMMAND: kill all processes
pkill processname pkill -9 processname