大家好,小弟想請教synology DSM的自動開關機與PT的問題。
DSM可以設定排程自動開關機,不知是否在關機時會通知各套件終止服務與寫入暫存資料。
因為PT如果是BT Client沒有正常關閉的話,個人積分可能會錯亂。
請問有沒有大大使用Synology且有在用PT的,可以分享一下自己的經驗嗎?
derliang wrote:
大家好,小弟想請教s...(恕刪)


小弟非 linux 的專家, 以下純粹猜測.

linux/unix 在 shutdown 時會送 signal 給各 process, 告知該是結束的時候了, 而各 process 此時就要開始處理自身程式的關檔等等動作.

請參考這裡. click here, 其中有關於 SIGTERM 的部份.

(節錄)
Linux Shutdown procedure brings the system down in a secure way. All logged-in users are notified that the system is going down, and all the new logins are blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM.
FB: Pctine

pctine wrote:
linux/unix 在 shutdown 時會送 signal 給各 process, 告知該是結束的時候了, 而各 process 此時就要開始處理自身程式的關檔等等動作.


This is only applicable to the processes running on the Synology system. External program (running outside of Synology box) will just experience the file server connect disruption.

wesley8usa wrote:
This is only applicable to the processes running on the Synology system. External program (running outside of Synology box) will just experience the file server connect disruption.


如果不能讓套件程式自動關閉的話,那麼就有大麻煩了。
這樣自動開關機的功能會大打折扣。
請問有在DSM上實作過PT的人可以分享一下經驗嗎?
irsjx2vxo3ne3k84dr1dz4,r4pe8bez3/4ne3bq4bew2j92gea jx4hq me-2d8 e3hy4hi2ty k84!
關機就都關掉了阿..沒遇過這問題
用synology的NAS掛各大站PT已經很久了
PT站沒發生過任何問題
我有每天定時開關機

hydee wrote:
關機就都關掉了阿.....(恕刪)



抱歉抱歉,我沒有說清楚我的問題。
我是不是用內建的Download Station,而是用另外安裝的套件transmission。
不知道有沒有人有用transmission掛PT的經驗?

另外想請教hydee大,您用內建的Download Station掛PT時。
如果檔案正在做種,那麼移動下載好的檔案到別的資料夾時,是否會影響到做種?
irsjx2vxo3ne3k84dr1dz4,r4pe8bez3/4ne3bq4bew2j92gea jx4hq me-2d8 e3hy4hi2ty k84!

wesley8usa wrote:
External program (running outside of Synology box) will just experience the file server connect disruption....(恕刪)


再請教一下, 小弟不了解的是, ps command 可以 show 出所有正在執行的 process, 而 download station 應該也是其中的 process, 那麼 download station 不會收到 SIGTERM signal 嗎?
FB: Pctine

pctine wrote:
再請教一下, 小弟不瞭解的是, ps command 可以 show 出所有正在執行的 process, 而 download station 應該也是其中的 process, 那麼 download station 不會收到 SIGTERM signal 嗎?...(恕刪)


順便加問一下,那第三方套件跟官方套件的情形是否一視同仁。
要嘛就一起收到close的通知,要嘛就都不會有?
irsjx2vxo3ne3k84dr1dz4,r4pe8bez3/4ne3bq4bew2j92gea jx4hq me-2d8 e3hy4hi2ty k84!
一般Linux shutdown 可以跑script. 處理相關的正常關機程序寫在shutdown script 裡就好
手邊沒有synology 的機器
不過一般是在 /etc/init.d/rc0.d 裡加個script 就行. 不同的 linux 可能把 Runlevel 改過.
另外
SIGTERM 是給各個process 的, 所以要用這個來改shutdown 時的動作是要改程式碼. 樓主應該不是要這麼做吧

derliang wrote:
大家好,小弟想請教s...(恕刪)



拿幾個小站測試下不就好了,頂多紅種
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!