16.04 - Making systemd service unit produce output on start/stop - Ask Ubuntu


i have added service unit in ubuntu 16.04:

[unit] description=seaweedfs after=network.target  [service] user=root execstart=/root/work/bin/weed -v=0 volume -mserver=18.21.1.150:9333 -ip=8.9.4.9 -dir=/storage -max=2270 -images.fix.orientation=false -pulseseconds=1 

everything working fine. want know if process has been started or not. or if stopped, want see output has been stopped.

right doing service seaweedfs start. starts doesn't show message. want add useful messages on start or stop.

will thankful :)

you can check sudo netstat -nlutp | grep weed see if port assigned in .service file, (9333 in case) opened.

if see this, service may started

proto recv-q send-q local address           foreign address         state       pid/program name tcp        0      0 192.168.0.2:8081        0.0.0.0:*               listen      25878/./weed tcp6       0      0 :::9333                 :::*                    listen      1244/./weed 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User