Thread: Not getting background daemon statup service notification message box
hi all,
have created script named ssh_inotify.sh to check /var/log/auth.log log file newly started ssh session , display question message box. script uses inotifywait to monitor above log file modify file event , zenity create question message boxes.
now have created startup service config file named ssh_inotify under /etc/init.d folder , placed script ssh_inotify.sh under /usr/sbin , chmod this script executable.
service config file ssh_inotify uses start-stop-daemon run script background process.
now theproblem when start service using sudo service ssh_inotify start, service started, i can confirm using ps -a | grep ssh_inotify can check pid associated under /var/run/ssh_inotify.pid. now when ssh machine, not question message box, writing in log file , in can see message under cancel button option question message box getting printed.
this script runs when run directly or using start-stop-daemon command directly (exact command typed in service config file above) on terminal, not when same command executed using service file.
can please suggest me solution , reason such behavior when same command executed under different mode (using service or directly terminal).
if guys require code, can attach files (currently in office don't have access these files.)
hi guys,
please me out on this.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Not getting background daemon statup service notification message box
Ubuntu
Comments
Post a Comment