Artificial intelligent assistant

Start service with crontab linux I'm trying to create a shell to start a service, or have it be run by cron every time: 00 06 * * * sh /root/teste.sh In the teste.sh file or in the following command: service tomcat start I've also tried with: /usr/sbin/service tomcat_web start Neither way worked. Could anyone tell me where I'm going wrong? In the cron logs there is no error. It executes, but I do not know if it is correct or not.

Sorted out.

Test.sh adjusted file:


#!/bin/sh

PROGRAM_START="/orabin01/tomcat/bin/startup.sh"
DAEMON_USER="tomcat"

/bin/su $DAEMON_USER -c "$PROGRAM_START"

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a573533f59bbbb7d3c4a639ba83e5aca