/ Twonky Server 自動起動のためのsystemctl 設定

Twonky Server 自動起動のためのsystemctl 設定

自動で起動するためにsystemctlを設定する。
# vi /etc/systemd/system/twonkyserver.service
[Unit]
Description=Twonky service
After=syslog.target network.target
      
[Service]
Type=forking
ExecStart=/usr/local/twonky/twonkystarter
ExecStop=/usr/local/twonky/twonky.sh stop
PIDFile=/var/run/mediaserver.pid
      
[Install]
WantedBy=multi-user.target
      
# systemctl enable twonkyserver.service
# systemctl start twonkyserver.service
# systemctl status twonkyserver.service

● twonkyserver.service - Twonky service
Loaded: loaded (/etc/systemd/system/twonkyserver.service; enabled; vendor preset: enabled)
Active: active (running) since 金 2017-05-26 20:31:10 JST; 1h 15min ago
Main PID: 18214 (twonkystarter)
Tasks: 14
Memory: 121.3M
CPU: 16.403s
CGroup: /system.slice/twonkyserver.service
├─18214 /usr/local/twonky/twonkystarter
└─18215 /usr/local/twonky/twonkyserver

5月 26 20:31:10 kkuma.mydns.jp systemd[1]: Starting Twonky service...
5月 26 20:31:10 kkuma.mydns.jp systemd[1]: Started Twonky service.

— posted by くま at 09:43 pm  

この記事に対するコメントはありません

<< 2017.5 >>
SMTWTFS
 1 23456
7 89 10 11 12 13
14151617 18 1920
212223 242526 27
28 293031   
 
























T: Y: ALL: Online:
ThemePanel
Created in 0.0684 sec.