소스 검색

really fix init script this time

Hyper-KVM 5 년 전
부모
커밋
a88689b8bb
1개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 14
      openrc/lenovo_fix

+ 1 - 14
openrc/lenovo_fix

@@ -1,18 +1,5 @@
 #!/usr/bin/openrc-run
-
 command="env python3 /usr/lib/throttled/lenovo_fix.py"
 pidfile=${pidfile-/var/run/lenovo_fix.pid}
 description="Stop Intel throttling"
-
-start() {
-    ebegin "Starting Throttled daemon"
-    start-stop-daemon --start --exec $command \
-       --make-pidfile --pidfile $pidfile -- ""
-    eend $? "Failed to start Throttled daemon"
-}
-
-stop() {
-    ebegin "Stopping Throttled daemon"
-    start-stop-daemon --quiet --stop --pidfile $pidfile --signal QUIT
-    eend $? "Failed to stop Throttled daemon"
-}
+command_background="yes"