소스 검색

oneshot add

From @datenklause
With Type=oneshot, systemd waits until the start action has completed
before it considers the unit to be active, so dependencies start only
after the start action has succeeded. With Type=simple, dependencies
will start immediately after the start action has been dispatched.
pull/7/head
azlux 8 년 전
committed by GitHub
부모
커밋
83be051ed8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      log2ram.service

+ 1
- 0
log2ram.service 파일 보기

@@ -3,6 +3,7 @@ Description=Log2Ram
Before=syslog.target mysql.service fail2ban.service nginx.service rsyslog.service

[Service]
Type=oneshot
ExecStart= /usr/local/bin/log2ram start
ExecStop= /usr/local/bin/log2ram stop
ExecReload= /usr/local/bin/log2ram write


불러오는 중...
취소
저장