[Solved] Running mpd as user mpd with systemd without using mpd.conf

Maybe this is tivial, but I searched about an hour without any results. I want to run mpd as user mpd. I cant use the mpd config file since mpd set the UID and GID explicitely resulting in mpd not having the necessary supplementary groups to access the locally shared music on my pc. Well I tried to run mpd with systemd by
# systemctl start mpd
and  the systemd contains the user mpd
$ cat /etc/systemd/system/default.target.wants/mpd.service
[Unit]
Description=Music Player Daemon
After=network.target sound.target
[Service]
User=mpd
ExecStart=/usr/bin/mpd --no-daemon
# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=-1
# move MPD to a top-level cgroup, as real-time budget assignment fails
# in cgroup /system/mpd.service, because /system has a zero real-time
# budget; see
# http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
ControlGroup=cpu:/mpd
# assign a real-time budget
ControlGroupAttribute=cpu.rt_runtime_us 500000
[Install]
WantedBy=default.target
but it did not run as mpd.
Well how can I run mpd as mpd? Is there a way to do it like with dropbox: dropbox@<user>.service
Last edited by manuelschneid3r (2015-03-25 12:52:52)

Glad you solved it. Was just typing a response and I'll still add two remarks:
The ps|grep output showed that you run grep as root, not mpd itself (which won't have a space in the command -- the second time it only worked because the mpd group is preceded by a space).
It sounds like it took you a while to find the drop-in configuration snippet in the mpd.service.d directory. These drop-in are shown in `systemctl status`, which is something you'd normally check in situations like these, and that might help to discover them more quickly.
Last edited by Raynman (2015-03-25 12:58:36)

Similar Messages

  • How do i share pictures with other users on my Mac without using iCloud or photo stream

    How do I share pictures woth other users on my Mac without using iCloud or photo streaming?

    Simplest way is probably to put copies into the Users/Shared folder.

  • Syncing contacts with iTunes without using iCloud

    Since the new iTunes Version 11.1.3 it seems not possible to sync contacts, browser bookmarks and other things via WLAN sync. I don't want to see my contacts on Apple servers in order to be synced via iCloud.
    Is there any possibility to sync an iPhone with iTunes without using iCloud. I'm quite angry Apple not leaving the decision on how to sync my iPhone up to me.

    User error.

  • Can we create Interactive forms only with ABAP & without using GP,  or Java

    Hi,
    I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
    Regards,
    Ramesh
    Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AM

    Hello Ramesh,
    You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
    Re: help for-offline interactive forms based on sending receiving mails in ABAP
    Regards,
    Rao

  • How can we find all the available  user-exits in sap without using SMOD?.

    How can we find all the available  user-exits in sap without using SMOD?.

    Hi,
    Please check this links for user exits list.
    http://www.planetsap.com/Userexit_List.htm
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/ab038.htm
    Regards,
    Ferry Lianto

  • How do I register with iTunes without using a credit card it's not giving me a none option???

    How can I register with iTunes without using a credit card it's not giving me a none option!!

    Did you follow these instructions? You have to. Also, you have to use an email addresss that you have not used with Apple before, it has to be a new acciount.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • [solved] How to restart all services with systemd?

    I had the habit of restarting all daemons after an upgrade so to make sure the newest libraries, configuration files etc were loaded. I did that with a shell script that restarted the daemons in order which they were listed in rc.conf. With systemd I could do something similar by first getting a list of running services and ordering a 'systemcrl restart  <servicename>' for each. But since systemd keeps track of dependencies I wonder if that would be the way to do it. Also I would need to filter out 'one shot' type services that are only needed on bootup.
    <edit>restart instead of reload</edit>
    <edit>solved it with a little script</edit>
    Last edited by rwd (2012-11-27 21:02:02)

    I think that's what systemctl snapshot does.
    snapshot [NAME]
               Create a snapshot. If a snapshot name is specified, the new snapshot will be named after it. If none is specified an automatic snapshot name is generated. In either case, the snapshot name used is printed to STDOUT, unless --quiet is specified.
               A snapshot refers to a saved state of the systemd manager. It is implemented itself as a unit that is generated dynamically with this command and has dependencies on all units active at the time. At a later time the user may return to this state by using the isolate command on the snapshot unit.
               Snapshots are only useful for saving and restoring which units are running or are stopped, they do not save/restore any other state. Snapshots are dynamic and lost on reboot.
    Then, isolate emergency.target or rescue target and switch to the snapshot.

  • [solved] Cannot activate wake on lan with systemd

    I have activated successfully wake on lan with systemd, following these guidelines :
    https://wiki.archlinux.org/index.php/Wol#With_systemd
    My [email protected] is:
    [Unit]
    Description=Wake-on-LAN for %i
    Requires=network.target
    After=network.target
    [Service]
    ExecStart=/usr/bin/ethtool -s %i wol g
    Type=oneshot
    [Install]
    WantedBy=multi-user.target
    It worked nicely until I recently had to reinstall my server (following a disk replacement). Since then systemd fails to activate wake on lan.
    Output from systemctl status wol@enp0s4 :
    ● [email protected] - Wake-on-LAN for enp0s4
    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
    Active: inactive (dead) since ven. 2014-07-25 11:21:28 CEST; 23min ago
    Process: 181 ExecStart=/usr/bin/ethtool -s %i wol g (code=exited, status=0/SUCCESS)
    Main PID: 181 (code=exited, status=0/SUCCESS)
    Output from ethtool enp0s4|grep "Wake" :
    Supports Wake-on: pg
    Wake-on: d
    If I explicitly start the service with systemctl start wol@enp0s4, then ethtool enp0s4|grep "Wake" shows:
    Supports Wake-on: pg
    Wake-on: g
    My guess is that the service does not start at the correct timing at boot.
    I have also tried wol-systemd package from the AUR without success.
    Last edited by elb (2014-07-25 15:02:21)

    After a fiew tries and reading docs, I found that replacing network.target with multi-user.target in [email protected] seems to work for me.

  • [solved] Setting up a "persistent" ramdisk with systemd

    I have been doing much thinking in terms of using a ramdisk (tmpfs) to mitigate, or rather postpone SSD write limit issues as well as to enhance system performance. After following the steps described in the Ramdisk wiki page to no avail, I realized I have a systemd setup. I have also found another topic describing how to "hack" init scripts into the systemd build but I am not sure this is the "right" (or most elegant) way. Essentially I would like to move/copy several folders to a ramdisk and have its contents written back to disk after system suspend/shutdown. Just general guidelines would suffice!
    (1) How should I go about setting up a "persistent" ramdisk with systemd? How would I setup "before" and "after" hooks?
    (2) From what I have gathered so far, it appears that for the above, using rsync rather than cp would be a more efficient way to write ramdisk contents to disk. Is this true?
    (3) The example described in the Ramdisk wiki page loads pacman cache and lib into a ramdisk. How about completely putting /var to a ramdisk?
    (4) Will doing what I have described above (including /var) possibly leave my system in an inconsistent state?
    I am trying to get this running on a computer with 8 GB of RAM on which memory usage rarely goes above 2 GB. I am not too worried about power failures as what I intend to put on the ramdisk is not mission critical (with the possible exception of /var).
    I apologize in advance if I posted my concerns in the wrong subforum as I am both a Linux rookie and an Arch noob; I have also tried using the search function but I may have formulated my query improperly (the answers seemed irrelevant!) Thanks in advance for your time and please let me know if I have omitted important details.
    Last edited by ndejay (2012-10-31 13:50:02)

    #create 'ramdisksave' directory using terminal
    mkdir /home/ramdisksave
    #edit grub config or custom_40. This allocates max ram for ramdisks
    kernel /vmlinuz ramdisk_size=2048000
    #edit rc.local add these lines to create & mount ramdisk at boot
    mke2fs -t ext2 /dev/ram1 2048000
    mount /dev/ram1 /home/ramdisksave
    #copies 'ramdisksave' contents to ramdisk save as *.sh make exe!
    cp -a /home/ramdisksave/.  /mnt/ram1
    #saves ramdisk contents to ramdisksave folder save as *.sh make exe!
    cp -a /mnt/ram1/.  /home/ramdisksave/
    #deletes ramdisk contents save as *.sh make exe!
    cd /mnt && rm -rf ram1/*
    #deletes ramdisksave contents save as *.sh make exe! DANGEROUS!!
    cd /home && rm -rf ramdisksave/*
    for safety better to create ramdisksave on another partition.  Scripts can be crontabbed, can add tar compression options to save space, use rsync to copy only  new etc etc.......script lines can be added to r.sysinit for startup and rc.shutdown for load and save at startup and shutdown.
    Last edited by st.emsee (2013-06-22 11:23:44)

  • Creating user accounts with OIDDAS and use them from the OS

    Hi,
    I have a customer that is experiencing an error creating user accounts from OIDDAS, and use that user accounts from the operating system.
    My customer is using OID/OAS4OS 10.1.4.2.0, and that version is not longer available to download, then, I will try in my own environment
    with OID/OAS4OS 10.1.4.3.0.
    And the question is the following: is supported to create user accounts with OIDDAS and expect that users can work with OAS4OS and be
    able to authenticate in the operating system?
    For the reference, SR# 7222351.993:
    Thanks,
    Luis Vivero.
    Edited by: LV in ORCL on Dec 11, 2008 6:47 AM

    Hi Jacco,
    I didn't see your post before.
    Nop, unfortulately I don't have a document with that. I just received that answer
    from development (related to the plugin for AD that is not certified, and DAS is
    not intended to work with OAS4OS).
    Anyway, about the plugin to work with AD, this is working for me; at least I tested
    it by configuring the plugin, I configured synchronization, the mapping file, I did
    the bootstrap, and the accounts that were bootstraped now shows the OS attributes
    on DAS.
    Regards,
    Luis Vivero.

  • Single user authorization ... without using profile..

    If we create a role ZFIAPP_TRANSACTIONS for the finance dept. and assign it to 8 user's. after that a user request for another t-code authorization w'll have to edit this role rather than creating a new one and assign the t-code into this role.. it w'll effect to all 8 user's which they already have the same role my  question is there any way to have changes only to one user's not other's. also I don't want to create a role and assign to a single user ....
    and is there any way to assign authorization without using profile.
    please clarify on this...

    Hi Mirza,
    If you will change the role then it will be applicable to all 8 users. to be effective for only one user you have the only option of creating a different role with the new t-code.
    Regards
    Ashok

  • How can I share an ibook that is 250 megs with others without using the ibook store

    Hello
    I'm using ibook author and the book I have created is 250 megs. I'm having trouble sharing it and getting on my new ibook air. Does anyone know if there is a good way to share the file with others without publishing it or using iTunes?
    I'd ideally like to use something like Dropbox or my website but every time I try to download the file using one of these sites safari/apple says file not readable.
    Any help would be appreciated.
    Thank you!

    Thank you both for the help and sorry about not replying earlier. I've tried both drop box as well making the ibook downloadable from a website. I've triend to create a step by step list below that better illustrates what is happening.
    1) export ibook author file as an xxxxxx.ibooks
    2) upload xxxxx.ibooks to dropbox and then send my self a test link
    3) using safari i download the xxxxx.ibooks file
    4) while still in safari a page opens up with an icon for the xxxx.ibooks file and it has two buttons underneath it- one that says "open with..." and another that says "open in ibooks"
    THIS IS WHERE THE IBOOK PROBLEM STARTS
    5) I tap on the "open in ibooks" button - nothing happens
    6) I tap on the "open with..." button and an icon for the ibook app pops up
    7) I tap on the ibook app icon and nothing happens
    8) I tap and hold the "open in ibooks" button for 2 plus minutes (the time for holding the button down fluctuates from 45 seconds to 5 minutes)
    9) the xxxxxx.Ibooks file opens in the ibook app.
    I am very happy that I was able to get the xxxxx.ibooks file to open on my ipad. However, this is not a smooth or intuitive process. I need to share the xxxxxx.ibooks file with many people and I want to find a process for getting them the book that is very easy.
    any advice is appreciated
    Do you think the problem could be the size of the file?
    Thank you

  • Programming Weblogic with jmx without using weblogic api?

    Hi,
    I want to know if it is possible to program weblogic management service without
    using weblogic api but just rely on standard JMX interface and methods.
    Currently, I am relying on weblogic api weblogic.jndi.Environment and weblogic.management.MBeanHome
    interface to get the context and access the MBean Server subsystem. Can I find
    the equivalent using jmx?
    My code is as follows:
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domain = home.getDomainName();
    homeServer = home.getMBeanServer();
    Thank you.

    Hi Ryan,
    I have looked through the documentation.
    It told me that I need to use weblogic.management.MBeanHome interface to get MBeanHome
    and from there then I can only use jmx interface.
    I presume it is not possible not to use weblogic.jar if I want to establish the
    initial connection with Weblogic server?
    Thanks.
    ryan upton <[email protected]> wrote:
    YongLeong wrote:
    Hi,
    I want to know if it is possible to program weblogic management servicewithout
    using weblogic api but just rely on standard JMX interface and methods.
    Currently, I am relying on weblogic api weblogic.jndi.Environment andweblogic.management.MBeanHome
    interface to get the context and access the MBean Server subsystem.Can I find
    the equivalent using jmx?
    My code is as follows:
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domain = home.getDomainName();
    homeServer = home.getMBeanServer();
    Thank you.I think you'll find your answer here:
    http://edocs.bea.com/wls/docs81/jmx/index.html
    HTH
    ~Ryan

  • How to make a DVD video with iDVD without using themes

    How can I record my DVD without using iDVD themes. I do not care about the selections. I just want a simple slide show showing only photos.

    Hello puzzledbon,
    Than you for the question.  You can make a OneStep DVD from a movie to avoid adding a theme to you DVD.  Before you can do that, you will have to create your slideshow and export it in iPhoto.
    Use the steps in the section titled "Make a saved slideshow" in the following article to create a slideshow in iPhoto '11:
    iPhoto '11: Make a slideshow
    http://support.apple.com/kb/ph2333
    Next, you will have to export the slideshow as a movie using the steps in this article:
    iPhoto '11: Export a slideshow
    http://support.apple.com/kb/PH2428
    If you are using iPhoto '09, you can use the steps in this video to create and export your slideshow:
    iPhoto '09: Create and Share a Slideshow
    http://support.apple.com/kb/vi14
    Exporting the slideshow as a movie will give you a video file that you can use in conjunction with the steps in the following article to make a DVD without a theme:
    iDVD '09 (7.x): Burning a OneStep DVD from a movie on your hard disk
    http://support.apple.com/kb/ph5524
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Making a dvd with menu (without using DVD Studio Pro)

    Hey,
    I'd like to make a dvd with menu / titles etc in FCP X, but don't know how (without using DVD Studio Pro - which I no longer have!)
    Also, is there a way to burn multiple movies onto one dvd in Compressor?
    Cheers,
    Sean

    SeanNeedsYourHelp wrote:
    … I'd like to make a dvd with menu / titles etc …
    https://discussions.apple.com/docs/DOC-3711

Maybe you are looking for

  • Rotated image overlaps other controls

    Hi, I am working on an AIR app involving images. One of the functionalities is viewing as well as rotating images. I made a simple test app to illustrate this portion: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://ww

  • Facebook and Twitter integration not working

    I'm have trouble using Facebook and Twitter integration in Mountain Lion. When I click 'Click to Tweet', or 'Click to Post', nothing happens; I don't get the notecard looking thig, and it's like I never clicked the button. Same thing with sharing fro

  • New itunes 11 wont sync new music to iphone

    I downloaded the new version of iTunes the otherday and this morning I downloaded a new cd I've been waiting for for a while. Now that its downloaded and on my computer I can't for the life opf me get it to sync to my iphone.  Ive tried to manually u

  • Read field of TextInmput text and to execute referring condition to the informed text

    Post Read field of TextInmput text and to execute referring condition to the informed text, AS3.0 To depend the inserted text for the user, flash will be read by the compiler to player, and a connective if goes to define for which picture will be dir

  • Cell phone to ipad mini

    I have a Blackberry Torch and would like to bridge to ipad mini given to me for Chriistmas. Not my choice. Can i bridge Torch to ipad mini and how. Thanks, ccbjbcab1