开发者

Modifying shutdown script

开发者 https://www.devze.com 2023-01-17 08:39 出处:网络
I\'m looking for the location of the system script that calls /sbin/shutdown. I want to change the flags so when the machine is shutdown from the finder, it halts the machine, but doesn\'t power off.

I'm looking for the location of the system script that calls /sbin/shutdown. I want to change the flags so when the machine is shutdown from the finder, it halts the machine, but doesn't power off.

Alternately, I'd like to force the setting that "Start up automatically after a power failure" checks on power applied to start the machine every time the power comes on.

Is there a way to enforce a dirty shutdown wi开发者_运维知识库thout trashing the filesystem?


In OS X, the shutdown is not done by /sbin/shutdown in a standard GUI setting.

If you want to perform something when a login or logout occurs, use login/logout hooks described here.

0

精彩评论

暂无评论...
验证码 换一张
取 消