Hi wolfgang, Am 14.08.19 um 10:01 schrieb Wolfgang Mueller:
Now, here is the file I made according to your sample:
****************** BEGIN OF nfs_wolfgang.service ******************* [Unit] Description=/etc/systemd/system/nfs_wolfgang.service After=xdm.service
[Service] Type=simple ExecStart=/home/wolfgang/bin.BGR/nfsclient RemainAfterExit=no
[Install] WantedBy=multi-user.target ******************* END OF nfs_wolfgang.service ********************
I switched it on by typing: systemctl enable nfs_wolfgang.service
But it does not work. Do you see any error in my file?
no. but as carlos wrote for himself, i am also not an expert in this things :-(((
Thank you again, Wolfgang
ok, with
systemctl enable nfs_wolfgang.service you should get a output like: Created symlink /etc/systemd/system/multi-user.target.wants/nfs_wolfgang.service → /etc/systemd/system/nfs_wolfgang.service.
if you prefer yast, go to yast and "dienste verwaltung" you should see your service there. and you could show details, switching on and off also possible from there. or from the commandline: systemctl start nfs_wolfgang systemctl stop nfs_wolfgang systemctl status nfs_wolfgang you say its not working, i am not sure what is not working. try to start and stop manually, and look if working. here some further hints what i would do if not working: first check if the exec start line will be executed, for this i would do somthing simple: your progam (shellscript?) /home/wolfgang/bin.BGR/nfsclient let it do something you could easily check if its done: (renanme your original file first) content of "nfsclient": #! /bin/bash cp /home/wolfgang/bin.BGR/nfsclient /home/wolfgang/nfsclient-copy make it executable (i like to use midnight commander for this) start it an take a look if this copy was done. if yes, delete the nfsclient-copy try to start with "systemctl start nfs_wolfgang" take a look if the copy was done. (delte the copyed file after) now you boot your system and if then the nfsclient-copy was done, you are sure, the problem is not the .service file. then you have to check why your (original) command "/home/wolfgang/bin.BGR/nfsclient" will not work. if not, the service file has a problem. then i would try to change the line: After=xdm.service to something else (i do not know if xdm.service will work at all), check inside /etc/systemd/ and subdirs the files, what they have inside . if you have firewalld running (you could check inside yast dienstewerwaltung) try like my example. if working then your xdm.service will here not be accepted or will never be started at your system. hope this help you. if you (because of my english) not understand me, could mail private in german. -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org