0
문제점 : 로그 파일이 생성 되더라도 notify-send 명령이 알림을 표시하지 않습니다.notfiy-send가 upstart로 표시되지 않음
: /홈/사용자/시험의내용
description "test job"
start on runlevel [2345]
exec /home/sajal/test
/etc/init/myjob.conf 의
#!/bin/bash
echo 'test job, reporting...'
while :
do
notify-send 'This is a simple notification Sir'
sleep 30
done
내용은 구문 오류를 확인하려면
$ init-checkconf myjob.conf
위의 .config 파일을 실행하려면 즉 제가 사용했을
$ sudo start myjob
로그의 내용을 볼 생성 :
$ sudo gedit /var/log/upstart/myjob.log
당신은 천재입니다! – Tiger98