Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Linux systemd UNIT for AMS and AMSADMIN

Advisor ,
Sep 24, 2019 Sep 24, 2019

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!

289
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines