Is it possible to create a service that depends on several other services? What is the right syntax?
Such as:
[Unit]
Description=service description
Wants=network.target
After=network.target
After=syslog.target
[Service]
User=bootapp
ExecStart=/var/app/app.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
The goal is to start a service automatically after OS reboot and make sure that logging and networking services are started prior to the service.
Additional question: Do I need to specify Restart
?