systemd scripts for Scheduler Application server (Event_demon and as_server)
search cancel

systemd scripts for Scheduler Application server (Event_demon and as_server)

book

Article ID: 240631

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Below are example systemd scripts for Scheduler Application server (Event_demon and as_server).  These are not formally tested/certified, but scripts that might help or provide basis to create appropriate ones.

 

Environment

Release : 12.0

Component :

Resolution

# NOTE: change reference to the autouser (/opt/CA/WorkloadAutomationAE/autouser.R12,    and instance name (R12) in waae_server.R12 /  waae_sched.R12 ) folder and instance names in the script.

Application server first (waae_server.R12) :

1)  as root

vi /etc/systemd/system/waae_server.service

2) contents of the file:

[Unit]
Description=Workload Automation Application server service
After=local-fs.target remote-fs.target network.online.target sockets.target chronyd.service vasd.service
Wants=network-online.target
 
[Service]
Type=forking
WorkingDirectory=/opt/CA/WorkloadAutomationAE/autouser.R12
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=/etc/init.d/waae_server.R12 start
ExecStop=/etc/init.d/waae_server.R12 stop
 
 
[Install]
WantedBy=multi-user.target

 

3) Save the file and quit vi

4) Grant permissions

chmod 755 waae_server.service

5) Enable the services

systemctl enable waae_server.service

systemctl status waae_server.service

systemctl stop waae_server.service

systemctl start waae_server.service

 

 

Similarly for the scheduler process (waae_sched.R12) 

 

1)  as root

vi /etc/systemd/system/waae_sched.service

2) contents of the file:

[Unit]
Description=Workload Automation Scheduler Service
After=local-fs.target remote-fs.target network.online.target sockets.target chronyd.service vasd.service
Wants=network-online.target
 
[Service]
Type=forking
WorkingDirectory=/opt/CA/WorkloadAutomationAE/autouser.R12
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=/etc/init.d/waae_sched.R12 start
ExecStop=/etc/init.d/waae_sched.R12 stop
 
 
[Install]
WantedBy=multi-user.target

 

3) Save the file and quit vi

4) Grant permissions

chmod 755 waae_sched.service

5) Enable the services

systemctl enable waae_sched.service

systemctl status waae_sched.service

systemctl stop waae_sched.service

systemctl start waae_sched.service