LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a systemd syntax guide someplace? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-systemd-syntax-guide-someplace-4175488813/)

vhradice 12-21-2013 07:55 PM

Is there a systemd syntax guide someplace?
 
I have been running Fedora for a while and I have seen some messages about certain keywords in systemd being depreciated. I assume that that means that those keywords are being phased out and replaced by something new. Where can I find the syntax now being used? Here is the line in one of my rules that is failing to work:

BUS=="usb", SYSFS{idVendor}=="045e", SYSFS{idProduct}=="0745", ACTION=="add", RUN+="/etc/init.d/btnx start"

How can I figure out what the proper syntax is to get this to work?

Thank you,
Vince Radice

grail 12-21-2013 11:28 PM

ummm ... are you sure that is from a systemd file?? I would have said it looks a lot like a udev rule

jpollard 12-22-2013 08:25 PM

It is udev... but systemd is trying to takeover udev as well as everything else..

What system is this on?

frankbell 12-22-2013 08:36 PM

There're a number of links to systemd documentation at this site. Scroll about two-thirds of the way down the page:

http://www.freedesktop.org/wiki/Software/systemd/

vhradice 12-22-2013 11:42 PM

Thanks for the quick responses.

Yes, it is a udev rule. I am using btnx to map extra buttons on my mouse to key strokes. This worked until a recent update. I am running Fedora 19 - 64 bit. To get it to work now, I need to go into the System programs, bring up btnx and restart it. It is a nuisance and not really a problem.

I looked at the documentation and found the reference that talks about udev rules. I started looking through it and some of the terminology seems to require a very intimate knowledge of how linux works. I was hoping to find a simple guide that describes the keywords that are being deprecated and how to convert to the new syntax. Any help would be appreciated.


All times are GMT -5. The time now is 06:21 PM.