Highlighted

Linux systemd UNIT for AMS and AMSADMIN

Advisor ,
Sep 24, 2019

Copy link to clipboard

Copied

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!

Views

95

Likes

Translate

Translate

Report

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

Linux systemd UNIT for AMS and AMSADMIN

Advisor ,
Sep 24, 2019

Copy link to clipboard

Copied

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!

Views

96

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 24, 2019 0

Have something to add?

Join the conversation