in reply to Restarting same script
Is there a way to send a signal to a script and have it restart itself?
Yes there is. A lot depends on what you mean by "restart itself". The simple answer is exec $0;. And the usual daemon behavior is to reset on a SIGHUP signal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Restarting same script (exec)
by tye (Sage) on Dec 28, 2011 at 16:06 UTC |