You are not logged in.
Any kind of help is appreciated.
I tried this :
=========================
[winjeg@gpc ~]$ cat /etc/systemd/system/startup.service
[Unit]
Description=A Start Up Demon Using Bash script
After=syslog.target
Before=wicd.target
[Service]
ExecStart=/etc/startup
[Install]
========================
then I use systemctl enable the service but , still it doesn't work.
Offline
I think it's because you have nothing in the [Install] section. That's how systemd knows where to place the symlink.
My startup.service:
[Unit]
Description=Startup
After=network.target
[Service]
ExecStart=/usr/local/bin/startup.sh
[Install]
WantedBy=multi-user.target
Also, please learn to use BBcode.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
You don't really need an install or to use `systemctl enable`. "enable" just symlinks .service files into the appropriate directory. If you are creating the file yourself you can just put it in the right directory. In this case just move it to the subfolder of it's current location for mult-user.target
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I think it's because you have nothing in the [Install] section. That's how systemd knows where to place the symlink.
My startup.service:
[Unit] Description=Startup After=network.target [Service] ExecStart=/usr/local/bin/startup.sh [Install] WantedBy=multi-user.target
Also, please learn to use BBcode.
Sorry , I forget to post this
WantedBy=multi-user.target
Indeed , I added this .
Offline