- 论坛徽章:
- 0
|
刚发现在一个DEBIAN下的控制服务的命令,
省去了每次打入长长的一串路径 。
# invoke-rc.d vsftpd restart
# invoke-rc.d --help
invoke-rc.d, Debian/SysVinit (/etc/rc?.d) initscript subsystem.
Copyright (c) 2000,2001 Henrique de Moraes Holschuh
Usage:
invoke-rc.d [options] [extra parameters]
basename - Initscript ID, as per update-rc.d(8)
action - Initscript action. Known actions are:
start, [force-]stop, restart,
[force-]reload, status
WARNING: not all initscripts implement all of the above actions.
extra parameters are passed as is to the initscript, following
the action (first initscript parameter).
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18852/showart_307651.html |
|