Help me, I can't run other services (can only run one service). If I try to run another service it will make it deactivating (stop)
sone.service:
[Unit]
Description=My Service One
After=network.target
[Service]
Type=forking
User=ztz
ExecStart=/home/ztz/Downloads/sone/script.sh start
ExecStop=/home/ztz/Downloads/sone/script.sh stop
[Install]
WantedBy=multi-user.target
I started this service no problem
stwo.service:
[Unit]
Description=My Service Two
After=network.target
[Service]
Type=forking
User=ztz
ExecStart=/home/ztz/Downloads/stwo/script.sh start
ExecStop=/home/ztz/Downloads/stwo/script.sh stop
[Install]
WantedBy=multi-user.target
and after I run the stwo.service will be deactivating (stop) but the sone.service still active
This is the status log:
stwo.service - My Service Two
Loaded: loaded (/etc/systemd/system/stwo.service; enabled; vendor preset: enabled)
Active: deactivating (stop)
Process: 2961 ExecStart=/home/ztz/Downloads/stwo/script.sh start (code=exited, status=0/SUCCESS)
Cntrl PID: 2964 (script.sh)
Tasks: 2 (limit: 4459)
Memory: 580.0K
CGroup: /system.slice/stwo.service
├─2964 /bin/bash /home/ztz/Downloads/stwo/script.sh stop
Jul 16 17:12:23 ztz-VivoBook-14-ASUS-Laptop-X441MA-X441MA systemd[1]: Starting My Service Two...
Jul 16 17:12:24 ztz-VivoBook-14-ASUS-Laptop-X441MA-X441MA systemd[1]: stwo.service: Succeeded.
Jul 16 17:12:24 ztz-VivoBook-14-ASUS-Laptop-X441MA-X441MA systemd[1]: Started My Service Two.```