瀏覽代碼

added missing %restart target used in %post of the spec

Christoph Schug 19 年之前
父節點
當前提交
b2ebacd28b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      bittorrent/rc.bittorrent

+ 5 - 0
bittorrent/rc.bittorrent

@@ -55,6 +55,11 @@
     sleep 2
     rm -f $bittorrent_pidfile 2>/dev/null || true
 
+%restart -u @l_rusr@
+    rcService bittorrent enable yes || exit 0
+    rcService bittorrent active no  && exit 0
+    rc bittorrent stop start
+
 %daily -u @l_susr@
     rcService bittorrent enable yes || exit 0
     shtool rotate -f \