0 like 0 dislike
2,303 views
asked Oct 25, 2017 in Education & Reference by Krish (880 points) | 2,303 views
    

2 Answers

0 like 0 dislike

The OTRS Daemon is a daemon process that performs asynchronous tasks, e.g. ticket escalation triggering, email sending, etc.

A running OTRS Daemon is mandatory for correct system operation.
Starting the OTRS Daemon

Make sure that the file '/opt/otrs/var/cron/otrs_daemon' exists (without .dist extension).

This cron job will check every 5 minutes if the OTRS Daemon is running and start it if needed.

Execute '/opt/otrs/bin/Cron.sh start' to make sure the cron jobs of the 'otrs' user are active.
like /opt/otrs/bin/Cron.sh start otrs

After 5 minutes, check that the OTRS Daemon is running in the system ('bin/otrs.Daemon.pl status').

answered Oct 25, 2017 by Sam (1,390 points)
I am getting error

[root@localhost ~]# su otrs /opt/otrs/bin/otrs.Daemon.pl status

/opt/otrs/bin/otrs.Daemon.pl: line 21: use: command not found
/opt/otrs/bin/otrs.Daemon.pl: line 22: use: command not found
/opt/otrs/bin/otrs.Daemon.pl: line 23: use: command not found
/opt/otrs/bin/otrs.Daemon.pl: line 25: use: command not found
/opt/otrs/bin/otrs.Daemon.pl: line 26: syntax error near unexpected token `('
/opt/otrs/bin/otrs.Daemon.pl: line 26: `use FindBin qw($RealBin);'
Tried another way

/opt/otrs/bin/otrs.Daemon.pl status
otrs.Daemon.pl - the OTRS daemon
Copyright (C) 2001-2017 OTRS AG, http://otrs.com/

Error: You cannot run otrs.Daemon.pl as root. Please run it as the 'otrs' user or with the help of su:
su -c "bin/otrs.Daemon.pl ..." -s /bin/bash otrs

[root@localhost ~]#  su -c "bin/otrs.Daemon.pl ..." -s /bin/bash otrs
bash: bin/otrs.Daemon.pl: Permission denied
You are doing the wrong way

Please follow the below commands

[root@localhost bin]# su otrs
[otrs@localhost bin]$ ./otrs.Daemon.pl status
otrs.Daemon.pl - the OTRS daemon
Copyright (C) 2001-2017 OTRS AG, http://otrs.com/

Daemon running
[otrs@localhost bin]$ ./otrs.Daemon.pl start
otrs.Daemon.pl - the OTRS daemon
Copyright (C) 2001-2017 OTRS AG, http://otrs.com/

Daemon already running!
0 like 0 dislike

OTRS Daemon Command Line Interface
The OTRS Daemon command line tools let you control the main daemon process (Start / Stop) or query its status. There are also tools to get more detailed information about the other four children daemons.
Main Daemon Tools
To start, stop or query daemon status bin/otrs.Daemon.pl script is used.
Example 4.30. Example to start the OTRS Daemon

shell> cd /opt/otrs/
shell> OTRS_HOME/bin/otrs.Daemon.pl start

Available Options
start - to start the OTRS Daemon process.
stop - to stop the OTRS Daemon process.
status - to query the OTRS Damon process status.
start --debug - to start the OTRS Daemon process in debug mode.
In this mode each daemon reports different messages depending on the actions that are been executed. This mode is not recommended for production environments.
stop --force - to stop the OTRS Daemon process in reducing the wait for children processes to finish.
A forced stop reduces the amount of time the main daemon waits to successful stop the other children processes from 30 seconds (normal) to 5 seconds (forced).
Other Daemon Tools
To list all configured child daemons that the main daemon should start and keep running use the console command: Maint::Daemon::List.
Example 4.31. Example to list all configured daemons

shell> cd /opt/otrs/
shell> bin/otrs.Console.pl Maint::Daemon::List

To list detailed information of all daemons use the console command: Maint::Daemon::Summary.
Example 4.32. Example to a summary of all daemon tasks

shell> cd /opt/otrs/
shell> bin/otrs.Console.pl Maint::Daemon::Summary

Source: OTRS

answered Oct 25, 2017 by anonymous
su otrs -c "bin/otrs.Daemon.pl status"
otrs.Daemon.pl - the OTRS daemon
Copyright (C) 2001-2017 OTRS AG, http://otrs.com/

Daemon running

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Aug 21, 2017 in Education & Reference by Marc (2,480 points) | 102 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Oct 8, 2015 in Education & Reference by Sam (1,390 points) | 768 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,167 questions
1,307 answers
276 comments
1,594 users