How to start a systemd with certain configuration options?

Hello,
I do not understand what wiki page at arch that can help me to understand how I can start a daemon with certain configuration options. I know I can start with
# systemctl enable unit
, but for example, if I whanted to start "xboxdrv" with the option [--mimic-xpad-wireless --silent], or any other custom options I might need. I presume it can be done simple by dropping a .conf file somewhere, but I do not follow what wiki page that adress this - if it at all is possible?
Regards
Martin

Hello,
I followed the drop in option now in https://wiki.archlinux.org/index.php/Sy … n_snippets
I tried to copy the whole xboxdrv.service and replace the ExecStart, and also only with ExecStart, like this:
[Service]
ExecStart=
ExecStart= ExecStart = /usr/bin/xboxdrv -D -c /etc/default/xboxdrv --mimic-xpad-wireless --silent
The drop in examples above is in: /etc/systemd/system/xboxdrv.service.d/override.conf
Reatarting
I then made sure the new .conf file was loaded by:
# systemctl daemon-reload
# systemctl restart xboxdrv
# system status xboxdrv
Result
In both cases, the service fails to restart and I recive this error
xboxdrv.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
Anyone know how I can start "xboxdrv" with my custom options "--mimic-xpad-wireless --silent" using this drop in function for systemd?
Regards
Martin
Last edited by onslow77 (2015-02-01 18:27:31)

Similar Messages

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • How to start java applet with netbeans 6.1

    hey,
    I want to learn how to start java applet (with database) with netbeans.. I'm new to java...can you show me how can i start..if you have any doc about it can you send it to me..thank you..:)

    You really should be asking this NetBeans question at the NB site - these forums are for Java language topics, not NB support.
    [http://www.netbeans.org/kb/61/web/applets.html]
    Almost any NB question you have can be answered by either the NB web documentation or the NB program's Help.

  • How to create wrielesss vlan with diffrence configuration

    how to create wireless vlans with different configuration in network?
    device use only :
    laptop = 30
    desktop = 40
    linksys wirelesss router = 1
    switch 2960 = 1
    router 1841 = 1
    vlan 10 = lecturer(1 desktop &amp; 1 laptop)
    vlan 20 = student(29 laptop &amp; 39 desktop)
    Posted by WebUser ???? ?????????? from Cisco Support Community App

    in this case we don't have enough budget t get WLC device....mybe use the autonomous ap....i use the linksys wireless routes as AP that connect to switch and create the VLANs 10 and VLANs 20 in the switch 2960, the switch connect to router 1841 that will ensure vlan connect each other.
    Posted by WebUser ???? ?????????? from Cisco Support Community App

  • How to start Integration server with the user XISUPER

    Hi,
    How to start Integration server with the user XISUPER?
    Regards,

    Mahesh,
    In the post installation document, under Creating User XISUPER,
    I see the following,
    1.You must now log on to the Integration server host with the user XISUPER, to switch the initial password to a valid password.
    2.You must restart the J2EE engine to transfer the user creation to the J2EE immediately.
    I am unable to proceed here.Can you please help me to resume the post installation steps ?
    Thanks,

  • REGARDING WCM( work clearnce management )how it start  and assign with PM ?

    DEAR Guru's
    i am fresher in PM module and i want to start pm and vice-verse WCM i have an idea about PM module but not Work Clarence Management so how to start it and assign with PM module and also its configuration and end user document if you have these document then plz do needfully
    regards
    Atul sharma
    9909973893

    Hello Atul,
    Frankly, I'm also not aware of WCM process or steps... but just in case it helps you.
    Refer - http://help.sap.com/saphelp_47x200/helpdata/en/2b/1b713896fab752e10000009b38f889/content.htm
    Also try to search SAP WCM on google.. hope you will find something.
    Regards,
    Anup

  • How to start a Workflow with a Dynpro action button.

    Hi @ all,
    i have the problem, that i want to start a workflow with a self-made dynpro.
    The dynpro consist the following information who had to be transported in the workflow.
    Stacknr.
    User
    Date
    Time
    and a tif data file
    Somebody have an idea how it works?
    i am very new in workflow. So if you want to help me than please with a step by step guide.
    Thanks a lot.
    Regards Phil

    Hi,
    Please go through the wiki. There are plenty of instructions. Also, this is commonly discussed topic, so try to search first. The key for your problem is that there are function modules to tirgger workflows (either directly or with an event).
    Regards,
    Karri

  • Utl_file how to start reading from a certain position?

    Hi all,
    i'm currently using utl_file to read a text file and import to db. i have managed to do it. however i would like to avoid reading the first line as it is the header. i would also like to avoid the last line as it is the footer.
    how do i use the function of get line to start reading at a certain position? i am also able to get the length but i do not know how to make it start reading from a certain position.
    the length of the first line will always be 9 and length for the last line would be 51.
    here's my code so far:
    set serveroutput on
    declare
    vSFile   utl_file.file_type;
    vNewLine VARCHAR2(4000);
    file_name VARCHAR2(200) := 'read.txt';
    v_exist     BOOLEAN;
    v_length number;
    blocksize   NUMBER;
    temp_value varchar2 (4000);
    BEGIN
      vSFile := utl_file.fopen('MYDIR', file_name,'r');
      IF utl_file.is_open(vSFile) THEN
        LOOP
          BEGIN
            utl_file.get_line(vSFile, vNewLine);
            IF vNewLine IS NULL THEN
              EXIT;
            END IF;
          EXCEPTION
            WHEN NO_DATA_FOUND THEN
              EXIT;
          END;
        END LOOP;
        UTL_FILE.FGETATTR('MYDIR',file_name,v_exist,v_length,blocksize);
        dbms_output.put_line(v_length);
        COMMIT;
      END IF;
      utl_file.fclose(vSFile);
    END read_demo;

    Hi,
    utl_file has an fseek procedure for moving the file pointer around in a file, either absolute or relative number of bytes.
    It's in the documentation, I'm surprised you didn't see it there when you looked before going to the hassle of asking us a question.
    Andre

  • How to start universe development with excel reports?

    hi,
    I have about 6 reports in excel with the help of which i have to create universe. Please help how to start and how i can make the universe? Examples will help much better.
    How to study the reports and start with development?

    Hi Vaibhav,
    Kindly check the below thread.
    How to create a Universe with excel?
    Regards,
    Tanb Gupta

  • How to start BPEL process with publishing initiation form designed in ADF

    Hii All,
    Can Anyone please tell me how to Start my BPEL process with publishing initiation forms designed in ADF fusion.
    I am using JDevloper 11g and Oracle SOASuite 11g toolset in windows platform.
    Thankx in Advance,
    Deekay.

    Hi,
    I assume you mean the JMS example under the $OH BPEL examples area. Unfortunately, this only shows how to get a BPEL process kicked off by awaiting a JMS message - but there is no test code there! There are specific examples which show off the testing framework facilities but it appears that all the examples which use async type of interactions are in the middle of a process which is kicked off by a normal synchronous client interaction.
    Any further help much appreciated.
    Colin.

  • TA21888 how to start a iMac with cd in the cd port

    How to start a IMAC 2010 / 2011 with cd in the tray thanks kids1

    What Disc (CD) is in the Optical DVD Drive...?
    If your trying to startup from the OS X Disc, see > Startup Manager
    If your trying to eject a stuck Disc, see > Quick Tip: How to Force Eject a Stuck Disc

  • How do I distribute Pages with Apple Configurator?

    In my school we have 15 iPads and I want to install Pages, Keynote, Numbers onto them with Apple Configurator. When viewing the ipad apps in the App Store on my iMac, it doesn't show them as free, but it does if I view them on the app store on an iPad. I purchased the free apps on an iPad so it linked them to my account, and I was then able to download it to my iMac. However, when I try and distribute them using Apple Configurator, it's asking for redemption codes. I can install them fine individually on each iPad, but they're around 1GB in total to download, I'd rather only have to do this once and send them to all iPads rather than downloading it 15 times.
    Thanks.

    I came across this problem again the other day when I download an app that was free for a limited time.
    I've started using Apple Configurator purely for iOS updates and installing a profile containing Wi-Fi settings etc. I have been using iTunes to manage apps which is a lot more powerful. After downloading the apps thtrough iTunes onto my Mac, I can then distribute all of the apps to the iPads via USB (the iPad's are stored in a Griffin small cabinet that acts as as USB hub) and I can manage them all at once. It takes a while to transfer, but its quicker than downloading 5+GB on each iPad, and iTunes allows you to manage app folders as well.

  • How to start NetworkManager sooner with systemd?

    I couldn't find this problem on the wiki or on the forum, so I'm posting it. Sorry if I missed something and it was already discussed.
    So I've upgraded to systemd and everything went smoothly, except for one silly issue. Namely, for some reason now NetworkManager seems to start later in the boot process (than it used to before migrating to systemd), and when my KDE loads, there is still no connection and the picture-of-the-day plasmoid and weather wallpaper cannot access the internet and therefore display errors. In couple of seconds the connection is established, but, since these widgets update only once an hour or so, they still show errors for quite a long time, unless manualy updated.
    This issue was not present before migrating to systemd, NetworkManager was able to establish the connection before KDE loaded.
    That's a bit annoying and I couldn't find a way to fix it. Obviously, it should be solved by forcing NetworkManager to start earlier in the boot process (so that it would have time to establish the connection before KDE loads), but I couldn't find how to do it properly. I've read that it's possible to set "before"/"after" properties for units, so, in principle, modifying NetworkManager unit and listing all other available units in the "before" section could work, but it seems to be a very ugly solution.
    Enabling NetworkManager-wait-online.service just increases the boot time by 6 seconds, but doesn't solve the problem.
    Last edited by jerf (2012-11-13 13:15:52)

    Ah, ok, the network manager is started by the multiuser target,
    but it does not yet complete it's tasks, before KDE starts. Have
    you read the systemd concerning part of the wiki entry for the
    network manager? Especially the part „Network services with
    NetworkManager dispatcher“? It mentions how to handle Programs
    which depend on the network interfaces to be configured (by the
    network manager).
    Last edited by Lord Bo (2012-11-13 17:26:56)

  • Applescript: How to start an application with parameters

    AppleScripters,
    I am sorry if I have posted this in the inappropriate forum, I saw none with a specific regard to AppleScript.
    Let us presume that we have a regular shell script which when initiated from the Terminal has code such as what follows hereupon:
    /Applications/SeaMonkey.app/Contents/MacOS/seamonkey -editor /Users/joebuffoon/myhomepage.htm
    In order to convert this to AppleScript I was told to use:
    activate application "Seamonkey"
    This works, but seems not to support the ability to either provision the "-editor" argument (such argument would impel Seamonkey to start in "composer mode"), nor does it seem to provision the allowance of supplying a file to open in "composer mode" as the aforementioned command line in my shell script would.
    Can I ask if anyone has any idea how I can do this in AppleScript?
    I am also interested to find a good book on Apple Scripting (preferably one available in PDF format as well, if possible).
    Thanks in advance,
    Stuart

    I saw none with a specific regard to AppleScript
    http://discussions.apple.com/forum.jspa?forumID=724

  • How to start an application with parameters

    AppleScripters,
    Let us presume that we have a regular shell script which when initiated from the Terminal has code such as what follows hereupon:
    /Applications/SeaMonkey.app/Contents/MacOS/seamonkey -editor /Users/joebuffoon/myhomepage.htm
    In order to convert this to AppleScript I was told by an associate to use:
    activate application "Seamonkey"
    This works, but seems not to support the ability to either provision the "-editor" argument (such argument would impel Seamonkey to start in "composer mode"), nor does it seem to provision the allowance of supplying a file to open in "composer mode" as the aforementioned command line in my shell script would.
    Thus, my query is if anyone has any idea how I can do this in AppleScript?
    I am also interested to find a good book on Apple Scripting (preferably one available in PDF format as well, if possible).
    Thanks in advance,
    Stuart

    I've had success with the script below, tested using SeaMonkey version 2.0b1 and Mac OS 10.4.11. It may or may not work with earlier versions of SeaMonkey, however, as the new beta version features UI changes.
    No browser window will open as long as SeaMonkey > Preferences > Appearance is set to open Composer exclusively at startup.
    Be advised that the script is meant to run slowly and might appear to be hanging when such is not the case. Adjusting delay times would be key if the script does fail at any point, however. Good luck.
    +Copy the block of code below and paste it into your AppleScript Script Editor:+
    *tell application "SeaMonkey" to activate*
    *delay 4 -- four-second delay; increase if necessary*
    *tell application "System Events"*
    *tell process "SeaMonkey"*
    *if not (exists window "untitled - Composer") then*
    *key code 21 using command down -- makes new window if necessary ("Command + 4")*
    *end if*
    *delay 2 -- increase if necessary*
    *keystroke "o" using command down -- "Open File…"*
    *delay 2 -- increase if necessary*
    *keystroke tab using shift down*
    *keystroke tab using shift down -- brings focus to text field for file search*
    *keystroke "File Name" -- enters file name (you must replace text within quotes with actual file name)*
    *key code 47 -- enters "dot"*
    *keystroke "html" -- enters extension*
    *delay 10 -- ten-second delay could be MININUM; increase if necessary*
    *keystroke tab*
    *keystroke tab -- brings focus to scroll area*
    *key code 125 -- presses down arrow to highlight specified file*
    *keystroke return -- presses "Open"*
    *end tell*
    *end tell*

Maybe you are looking for

  • How to extract a attachment from an email

    Hello SDN, we receive email via the configuration of TAC SO28 and trigger a workflow. What would be a good/possible way to extract potential attachments (such as pdf's or tif's) from the email within SAP workflow? Are there any methods or FM's, which

  • Archiving mail on external drive

    Hi, I have an imac (2012). On this moment i have for more than 3GB of mail. I have an external harddisk drive where i want to archive my macmail. Is this possible and how do it? Thanks in advance.

  • My last backup is not showing up in iTunes

    My last backup in iTunes is not showing up as an option.   I can see the backup file is still there as I found it under C: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\(file name).  I had to replace my iphone and need to restore

  • Bluetooth usb dongle support

    hi i am new to forum and java I am going to buy bluetooth usb dongle .I want to know that by having 2 dongles can I run my java socket programs to transfer data's or files between two PC's .is there anything like java supported bluetooth usb dongle i

  • What gets better quality for watching video.. airplay mirroring or HDMI cable

    I have the new Retnia. I have a apple tv and high quality HDMI cable. If I want watch a 900P movie from my laptop to my up to 1080p tv which would be more reliable/better quality? BTW the movie is predownloaded so it WOULD NOT be streamming. Thanks!