debian service
- Category: 電腦相關
- Last Updated: Tuesday, 18 November 2014 09:12
- Published: Tuesday, 18 November 2014 09:12
- Written by sam
在debian開機時能執行script
debian似乎不像redhat系列能直接加在rc.d裡面(但也可以弄在rcS.d)
所以就比較麻煩一點點
先寫下需要的指令
#!/bin/bash ### BEGIN INIT INFO # Provides: sam # Required-Start: $remote_fs $samnfs # Required-Stop: $remote_fs $samnfs # Should-Start: $network $time # Should-Stop: $network $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: auto mount nfs # Description: auto mount nfs ### END INIT INFO mount 192.168.1.3:/volume1/git /mnt/gitRead more: debian service