我导入 rc.local 成为 SVC 服务
程序有效,但是..我看到两个清单!
svcs -l svc:/site/rclocal:default
fmri svc:/site/rclocal:default
name Run-once service
enabled true
state online
next_state none
state_time 17 dicembre 2017 02:02:50 CET
logfile /var/svc/log/site-rclocal:default.log
restarter svc:/system/svc/restarter:default
manifest /root/rc.local.xml
manifest /lib/svc/manifest/system/rc.local.xml
dependency require_all/none svc:/system/filesystem/local:default (online)
问题是:如何删除一个清单?谢谢
答案1
旧的但是...
mv /lib/svc/manifest/system/rc.local.xml
到某个地方svcadm restart svc:/system/manifest-import
检查 rclocal 是否消失:
svcs -l rclocal
mv
rc.local.xml
回到/lib/svc/manifest/system/rc.local.xml
,但更好/lib/svc/manifest/site/
svcadm restart svc:/system/manifest-import
- 再检查一遍:
svcs -l rclocal