Start a new topic

Linux systemd UNIT for AMS and AMSADMIN - Robert McDowell

Copied from Linux systemd UNIT for AMS and AMSADMIN - Robert McDowell


Hi folks,

 

I would like to share the unit I created for linux systemd that replaced sysvm startup script, tested working 100% flawessly on all major distributions.

 

ams.service:

[Unit]
Description=Adobe Media Server
Before=amsadmin.service
After=syslog.target network.target
Requires=amsadmin.service

[Service]
Type=forking
PIDFile=/home/adobe/ams/amsmaster.pid
ExecStart=/home/adobe/ams/server start -silent
User=root
Group=root

PrivateTmp=true
TimeoutStopSec=120
TimeoutStartSec=180
StartLimitInterval=240
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

 

amsadmin.service:

[Unit]
Description=Adobe Media Admin
After=syslog.target network.target ams.service
Requires=ams.service

[Service]
Type=forking
PIDFile=/home/adobe/ams/amsadmin.pid
ExecStart=/home/adobe/ams/adminserver start
User=root
Group=root

PrivateTmp=true
TimeoutStopSec=120
TimeoutStartSec=180
StartLimitInterval=240
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

 

just put these 2 scripts into /etc/systemd/system/

and do

systemctl enable ams.service

systemctl daemon-reload

you will need to run only ams.service as amsadmin will automatically start and stop with ams.service

voila!

Login or Signup to post a comment