[SOLVED] netatalk and postfix init scripts (not systemd)

Hey, does anybody have an older version of Arch running somewhere?
I'm looking for init scripts for netatalk and postfix that I've just re-built from ABS on an outdated Arch system. However, both packages offer systemd support these days and no love for dissidents like myself.
They are probably very simple to write on one's own, but I just want to make sure I don't overlook some important trick.
If someone could possibly post those either here or on dpaste.org or whatever paste service you love, I would be a very happy person lol
Last edited by iliv (2013-12-01 14:17:00)

netatalk is in the AUR https://aur.archlinux.org/packages/netatalk/
postfix: https://projects.archlinux.org/svntogit … a3365f273e

Similar Messages

  • [SOLVED] after upgrade : /sbin/init does not exist. Bailing out, ...

    hi, after having upgraded today my archlinux, I cannot boot it. I get the following message : "ERROR: Root device mounted successfully, but /sbin/init does not exist. Bailing out, you are on you own. Good luck."
    The last time the system was upgraded was in june 2013, before the "Binaries move to /usr/bin requiring update intervention" advisory (https://www.archlinux.org/news/binaries … ervention/). So before upgrading I followed the instructions given in this article and was able to upgrade. But after reboot I got the error message I'm reporting here.
    Here is a copy  of the config I'm using to boot arch in grub:
    menuentry "Archlinux" {
            load_video
            set gfxpayload=keep
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos7'
            echo 'Loading of Archlinux, kernel v.3.xx.xx ...'
            linux /boot/vmlinuz-linux root=/dev/sda7 ro
            initrd /boot/initramfs-linux.img
    Last edited by heavytull (2014-03-06 21:24:48)

    karol wrote:
    There have been quite a few changes since you last updated e.g. we're using 'rw' instead of 'ro'. Try
    linux /boot/vmlinuz-linux root=/dev/sda7 rw init=/usr/lib/systemd/systemd
    It's now much better. But a lot of errors are reported and the system hangs, but still rebootable with Ctrl + Alt + Del.
    Here are the error messages:
    [FAILED] Failed to mount Configuration File System.
    See 'systemctl status sys-kernel-config.mount' for details.
    [FAILED] Failed to mount Huge Pages File System.
    See 'systemctl status dev-hugepages.mount' for details.
    [FAILED] Failed to mount POSIX Message Queue File System.
    See 'systemctl status dev-mqueue.mount' for details.
    [FAILED] Failed to mount Temporary Directory.
    See 'systemctl status tmp.mount' for details.
    [FAILED] Failed to start Remount Root and Kernel File System.
    See 'systemctl status systemd-remount-fs.service' for details.

  • [SOLVED] raid1 and luks/dm-crypt not working after upgrade

    hello folks,
    i just made a pacman -Syu, which also updated mdadm and cryptsetup (not the kernel). but after a reboot, the system didn't boot any more. after #'ing the cryptsetup-relevant lines in /etc/crypttab and /etc/fstab, the system booted again. after a check, i get those messages:
    ~ $ cat /proc/mdstat
    Personalities : [raid1]
    md1 : active raid1 sdd1[0] sde1[1]
    390707641 blocks super 1.2 [2/2] [UU]
    md0 : active raid1 sdb1[0] sdc1[1]
    1465134841 blocks super 1.2 [2/2] [UU]
    unused devices: <none>
    ~ $ sudo cryptsetup luksOpen /dev/md0 data
    Passwort:
    Geben Sie den Passsatz für /dev/md0 ein:
    semid 65537: semop failed for cookie 0xd4d2ffb: incorrect semaphore state
    Failed to set a proper state for notification semaphore identified by cookie value 223162363 (0xd4d2ffb) to initialize waiting for incoming notifications.
    what happened and how to fix it?
    i didn't change anything. so it shouldn't be anything about modules or whatever.
    EDIT: okay, it's not aboud the raid, but about the cryptsetup version. see below.
    Last edited by _abraxas (2011-01-28 11:18:34)

    SOLVED!
    It works again with the new version of the device-mapper: 2.02.81 (no unknown semaphore state anymore).
    But also the crypttab syntax has changed. After removing the options in crypttab, cryptsetup 1.2.0-1 works again.
    Old crypttab file:
    # NAME     SOURCE DEVICE     PASSWORD     OPTIONS
    #home     /dev/sda4     ASK     -c aes-xts-plain -s 512
    #data     /dev/md0     ASK     -c aes-xts-plain -s 512
    New crypttab file:
    # NAME     SOURCE DEVICE     PASSWORD     OPTIONS
    home     /dev/sda4     ASK
    data     /dev/md0     ASK
    Have a look at https://bugs.archlinux.org/task/22351

  • [SOLVED] Mpd and sonata doesn't seem to work

    Hi guys!
    I 'm facing with an issue . I can't seem to configure mpd correctly to run it with sonata .
    I've followed the alternative setup from archwiki and this is my config file .
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/andreas/Downloads/Torrents"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/home/andreas/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/home/andreas/.mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/home/andreas/.mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/home/andreas/.mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/home/andreas/.mpd/mpdstate"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "andreas"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Volume control mixer ########################################################
    # These are the global volume control settings. By default, this setting will
    # be detected to the available audio output device, with preference going to
    # hardware mixing. Hardware and software mixers for individual audio_output
    # sections cannot yet be mixed.
    # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
    # setting is used other sound applications will be affected by the volume
    # being controlled by MPD.
    #mixer_type "hardware"
    # An example for controlling all mixers through software. This will control
    # all controls, even if the mixer is not supported by the device and will not
    # affect any other sound producing applications.
    #mixer_type "software"
    # This example will not allow MPD to touch the mixer at all and will disable
    # all volume controls.
    #mixer_type "disabled"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "album" or "track". See <http://www.replaygain.org> for more
    # details. This setting is disabled by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting. After modification of this setting mpd
    # --create-db must be run to change the database.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    All the files required are in my /home/andreas/.mpd/ directory
    config
    mpd.db
    mpd.error
    mpd.log
    mpd.pid
    mpdstate
    playlists
    I've also added to my .xinitrc file
    mpd /home/andreas/.mpd/config
    I 'm sure i've done something wrong but don't know what it is . If anyone could help me out i would be grateful
    THanks a for all your help!
    Last edited by shak (2010-04-19 23:08:09)

    shak wrote:
    I've followed the first method with the mpd daemon and everything worked fine .
    THanks for all your help everyone !
    The add of MPD : ALL to hosts.allow seems to solved it .
    Thanks again!
    Nice.
    Please mark threads as [SOLVED] when they are. You can do so by editing the opening post.

  • [SOLVED] mpd and sonata issue

    Hi again!
    I've installed mpd and sonata but i don't see my library in sonata .
    This is my /etc/mpd.conf file
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/andreas/Downloads"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    #playlist_directory "~/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Volume control mixer ########################################################
    # These are the global volume control settings. By default, this setting will
    # be detected to the available audio output device, with preference going to
    # hardware mixing. Hardware and software mixers for individual audio_output
    # sections cannot yet be mixed.
    # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
    # setting is used other sound applications will be affected by the volume
    # being controlled by MPD.
    #mixer_type "hardware"
    # An example for controlling all mixers through software. This will control
    # all controls, even if the mixer is not supported by the device and will not
    # affect any other sound producing applications.
    #mixer_type "software"
    # This example will not allow MPD to touch the mixer at all and will disable
    # all volume controls.
    #mixer_type "disabled"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "album" or "track". See <http://www.replaygain.org> for more
    # details. This setting is disabled by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting. After modification of this setting mpd
    # --create-db must be run to change the database.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    I've add the mpd daemon in rc.conf and i've chosen my directory /home/andreas/Downloads in sonata .Also i put mpd:ALL to etc/hosts.allow
    Sonata connects fine to the server but i can't see my libary .
    What might be the issue ?
    Thanks again
    Last edited by shak (2010-06-10 11:27:13)

    If you continue to have issues with permissions, the solution i use is to simply run MPD as my normal user, storing all the necessary directories and files under ~/.mpd and just pointing it at the config file I stuck there:
    $ mpd ~/.mpd/config
    No more permissions issues! There's an explanation of this in the wiki.

  • Compiling init scripts as C

    Hello!
    A while back, I read that Blice (owner of http://its.alrig.ht/) had converted their init scripts to C to help the computer boot faster.
    Unfortunately, Blice's site seems to have disappeared, which is a shame since I'd like to read some of the information on his webpage.
    Anywho, my question is: anybody here have experience in converting startup scripts to C?
    I've rewritten the apache, ssh, and postfix startup scripts so far. I've put the code up on GitHub at http://github.com/ColinJones/binary-startup
    Any thoughts?

    I kind of like the idea myself. I would like to help with the development.
    After rethinking a bit, I don't think the hardest part to develop is the actually code, the part that is going to be challenging is the build script. I mean, if it is going to be according to my original idea, the program code itself is going to be simple but to be able to have simple program code when parsing rc.conf it means that the build script has to be a bit more complex, otherwise it will mean that the program code itself has to parse rc.conf. Well, that means if the rc.conf is going to be parsed in the first place. I think it should be parsed during build time, it will be a bit like mkinitcpio but for the initscripts but that is of course in my opinion.
    One of the first thing that needs to be done is probably do a prof-of-concept of a program + build script that can depending on the content of the config file build a program with different functionality. This is pretty much to simulate the DAEMONS array. A traditional way of doing this with statically linking is to including different files with the same interfaces and in case a functionality is not going to be present, use interface functions that are empty. This pretty much works when there isn't a lot of different functionality but I think there are to many possible DAEMONS to make this practical. I think a better way is to generate a config.h (or use a different name for the file) which contains a list of functional pointers to all the "modules" that should be included. In short, make the program aware of the function and include the file that contains the function to the linker and make the complete process dynamically.
    I might look in this prof-of-concept during the weekend.
    Last edited by PJ (2010-01-08 18:18:09)

  • WOL, init scripts and KDE

    Hello
    So, I may be confused with how init scripts are working, but in this case there is something I do not get.
    I am trying to be an energy efficient geek, so I decided to set-up a Wake On Lan (WOL) on my home server. The WOL itself is working fine, no issue on this side, but in order to have this working after each reboot, and according to the wiki, I have to add the following code to my rc.local file to set the WOL flag to my network interface.
    ethtool -s eth0 wol g
    And here is the problem : by default, my "server" starts a kde session after the boot. So my inititab is like that :
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    # id:3:initdefault:
    # Boot to X11
    id:5:initdefault:
    # Example lines for starting a login manager
    #x:5:respawn:/usr/bin/xdm -nodaemon
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/bin/slim >/dev/null 2>&1
    With these settings, the WOL flag is not set correctly after the boot. Now, if I do not start kde, use a console login and change my inittab to :
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    id:3:initdefault:
    # Boot to X11
    #id:5:initdefault:
    # Example lines for starting a login manager
    x:5:respawn:/usr/bin/xdm -nodaemon
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    #x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/bin/slim >/dev/null 2>&1
    In this case, the command in rc.local is executed correctly and my WOL flag is set as I want. So, either kde overwrites the flag when it starts or the rc.local file is not executed.
    Anyone with a clue of what is going on and how to solve that ?
    Thanks !
    Last edited by Cobaltounet (2011-02-02 04:25:24)

    zenlord wrote:
    Since your problem is solved, it might be the right time to ask my question to you regarding WOL:
    My server broadcasts it's IP across the network to be discoverable as a uPNP-server. I'm guessing that functionality will be lost if it is turned off, so I should configure all my uPNP-clients to send a magical packet whenever I decide to use them (which would be nearly impossible: I don't see this possibility for a PS3...)
    I am not an expert in uPNP, but I am afraid that there is not a lot of solutions to your problem. If your server is powered off, then something has to wake him up. You can probably do that from your laptop/desktop or your router directly but I do not think a PS3 can do it. And having to send the magic packet manually each time you want to use a uPNP device kind of defeat the convenience of the uPNP.

  • Dhcpcd starting by wich init-script? [Solved]

    I have static ip on both eth devices.  These configured by netcfg: with if1 and if2 files in /etc/network.d/
    here they are:
    cat /etc/network.d/if1
    CONNECTION='ethernet'
    DESCRIPTION='ethernet connection to internet'
    INTERFACE='eth0'
    IP='static'
    ADDR='10.85.231.106'
    NETMASK='255.255.0.0'
    GATEWAY='10.85.231.65'
    DNS=('10.85.224.33')
    cat /etc/network.d/if1
    CONNECTION='ethernet'
    DESCRIPTION='ethernet connection to localnet'
    INTERFACE='eth1'
    IP='static'
    ADDR='192.168.225.222'
    NETMASK='255.255.255.0'
    But my resolve.conf sometimes is overwritten by dhcpcd.
    in /etc/rc.conf I don't have any property connected with net set except HOSTNAME="ramazotty" and NETWORK_PERSIST="no"
    my daemons are:
    DAEMONS=(hwclock syslog-ng network net-profiles sshd samba xinetd @cupsd dbus @netfs crond)
    Who in the world is starting dhcpcd?
    p.s. The parent is process 1:
    >ps -f `pidof dhcpcd`
    UID        PID  PPID  C STIME TTY      STAT   TIME CMD
    root       497     1  0 15:09 ?        Ss     0:00 dhcpcd -q
    Last edited by roginovicci (2012-10-26 09:16:04)

    FYI you don't need the network init script when you're using netcfg.
    This is not the answer you're looking for, just some useful information - unless you happen to be wrong about your rc.conf.

  • [Solved] Add custom script to systemd

    Hi !
    Could be bash script added to systemd? Or should it be binary file?
    I've created new service file and put him into /usr/lib/systemd/system. Also I've created /etc/systemd/system/Samba-umount.wants directory and put a simlink to '/usr/lib/systemd/system/Samba-umount.service' here.
    The problem is that I can't start my Samba-umount. When tried to start it I got an error:
    [root@arch archer]# systemctl start Samba-umount.service
    Job for Samba-umount.service failed. See 'systemctl status Samba-umount.service' and 'journalctl -xn' for details.
    [root@arch archer]#
    Here  journalctl -xn output:
    [root@arch archer]# journalctl -xn
    Apr 03 12:59:12 arch systemd[1]: Starting Umount samba shares...
    -- Subject: Unit Samba-umount.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/7d4958e842da4a758f6c1cdc7b36dcc5
    -- Unit Samba-umount.service has begun starting up.
    Apr 03 12:59:12 arch systemd[964]: Failed at step EXEC spawning /usr/lib/systemd/scripts/umount.sh: Exec format error
    -- Subject: Process /usr/lib/systemd/scripts/umount.sh could not be executed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/641257651c1b4ec9a8624d7a40a9e1e7
    -- The process /usr/lib/systemd/scripts/umount.sh could not be executed and failed.
    -- The error number returned while executing this process is 8.
    Apr 03 12:59:12 arch systemd[1]: Samba-umount.service: main process exited, code=exited, status=203/EXEC
    Apr 03 12:59:12 arch systemd[1]: Failed to start Umount samba shares.
    -- Subject: Unit Samba-umount.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- Unit Samba-umount.service has failed.
    -- The result is failed.
    Apr 03 12:59:12 arch systemd[1]: Unit Samba-umount.service entered failed state
    Why script could not be executed? Script works fine when I starting it manually.
    Here my script  (/usr/lib/systemd/scripts/umount.sh):
    #!/bin/bash
    umount -f -l /mnt/share
    umount -f -l /mnt/torr
    and service file (/usr/lib/systemd/system/Samba-umount.service):
    [Unit]
    Description=Umount samba shares
    DefaultDependencies=no
    Before=shutdown.target
    [Service]
    Type=oneshot
    ExecStart=/usr/lib/systemd/scripts/umount.sh
    StandardOutput=syslog
    [Install]
    WantedBy=multi-user.target
    What's wrong here?
    Thanks in advance.
    Last edited by chord (2013-04-03 22:01:36)

    Thank for reply!
    Yes, I want to run this script on shutdown/reboot, because systemd can't umnount share and my box hangs on every reboot/shutdown. Just hangs in 'Umount /mnt/torr' stage. So I should reset my box by hardware reset button.
    Script works just fine when I starting it by hand from terminal. Chmod +x was did also.
    Here systemctl status output, nothing helpful found (at least for me):
    [root@arch archer]# systemctl start Samba-umount.service
    Job for Samba-umount.service failed. See 'systemctl status Samba-umount.service' and 'journalctl -xn' for details.
    [root@arch archer]# systemctl status Samba-umount.service
    Samba-umount.service - Umount samba shares
    Loaded: loaded (/usr/lib/systemd/system/Samba-umount.service; enabled)
    Active: failed (Result: exit-code) since Wed 2013-04-03 14:43:46 MSK; 3s ago
    Process: 693 ExecStart=/usr/lib/systemd/scripts/umount.sh (code=exited, status=203/EXEC)
    Apr 03 14:43:46 arch systemd[1]: Starting Umount samba shares...
    Apr 03 14:43:46 arch systemd[1]: Samba-umount.service: main process exited, code=exited, status=203/EXEC
    Apr 03 14:43:46 arch systemd[1]: Failed to start Umount samba shares.
    Apr 03 14:43:46 arch systemd[1]: Unit Samba-umount.service entered failed state
    About service's location: All manuals says that service should be located in /usr/li/systemd/system.

  • [Solved]Unable to boot /sbin/init does not exist.

    When I boot, I get this message: ERROR: Root device mounted successfully, but /shin/init does not exist. This is an installation that was working fine for me before. I went into Windows to free up disk space, and when I booted Arch later, this is what came up. I have already tried using the live disk as a rescue, but I am unable to chroot into it. I have checked my partitions with a live disk and my files are still there. Is there any way that I can fix this without reinstalling Arch? I have a lot of things that I cannot reinstall right now as I don't have access to the internet currently, and I am using my phone to access the forum.
    Last edited by LGG42 (2013-11-27 02:43:47)

    My bootloader is Syslinux. Yes, I am able to mount the file systems. The partitions are in ext4 format.  I boot from legacy BIOS, as I have had EFI problems in the past.  arch-chroot gives me this: ==> ERROR: failed to setup API filesystems in chroot /mnt. I should have been clear about what I did in Windows. I was running out of space in Windows, and I had some unallocated disk space, and so I extended my Windows partition.
    The output of frisk -l is:
    Disk /dev/sda: 500.1 GB, 500107862016 sectors
    Units = sectors of 1* 512
    I/O size (minimum/optimal): 4096 Bytes/4096 bytes
    disk label type: got
    #1 start: 2048 End 821247 size 400M type windows recovery 2 start 821248 End 1353727 Size 260M type ms basic 3 start 874614784 End 916559871 Size 128M ms reserved 4 start 1615872 End 874614783 Size 416G ms basic. 5 start 874614784 End 91655781 Size 20G ms basic. 6 start 916561920 End 916756479 Size 95M type EFI system. 7 start 916758528 End 928495615 8 start 928495616 end 928499711 Size 2M type ms basic. 9 start 928499712 End 976773119 size 23G type ms basic. Sorry about the mess that is in. As a note, my / partition is #5, and my home is #9. Thank you for helping.

  • I can not get Firefox to play music backgrounds on pages in browsers it works in IE and other browsers but not firefox, what HTML or Jave script do I need too use to make them work?

    I'm having a problem with firefox playing background music on some sites, it works with IE and other browsers but not with fire fox, what html or java script do I need to add to the pages so that they play the music?
    I develop my pages in Front Page and I know that the music only works in IE, so if someone can tell me how to correct this problem as it is important as I use fire fox as my main browser.
    I thank you in advance

    If a website uses BGSOUND then it will only work in IE.
    BGSOUND is not compatible with other browsers like Firefox.
    * http://kb.mozillazine.org/Background_music_does_not_play

  • I was updating my ipad2 to iOS.5 version, and somehow the iPad turned of and the update was not finished. When i turned on the iPad the computer nor iTunes could recognize the iPad. I have windows xp. How can I solve this issue?

    I was updating my ipad2 to iOS.5 version, and somehow the iPad turned of and the update was not finished. When i turned on the iPad the computer nor iTunes could recognize the iPad. I have windows xp. How can I solve this issue?

    Try throwing it into recovery mode and starting over.
    http://support.apple.com/kb/ht4097

  • Good afternoon! I purchased a few months the basics of adobe photoshop package with the CC and Lightroom, but has expired, and was made the annual package. What can I do to solve this problem. I have two weddings being edited and now I can not finish the

    Good afternoon! I purchased a few months the basics of adobe photoshop package with the CC and Lightroom, but has expired, and was made the annual package. What can I do to solve this problem. I have two weddings being edited and now I can not finish the work. I thank you.

    Renew the subscription?

  • I want a solution to my problem and i hope to see any number to contact you for information i'm from saudi arabia and the problem has not been solved so far and i sent my problem via a Email twice before

    I want a solution to my problem and i hope to see any number to contact you for information i'm from saudi arabia and the problem has not been solved so far and i sent my problem via a Email twice before

    Most of the people on these forums, including myself, are fellow users - you aren't talking to iTunes Support here.
    Have you contacted iTunes Support as was suggested on your duplicate posts :
    https://discussions.apple.com/message/22178793#22178793
    https://discussions.apple.com/message/22178411#22178411

  • My iPad stop working suddenly i see black screen only pressing the home? and sleep button dose not solve the  problem please help?

    My iPad stop working suddenly i see black screen only pressing the home and sleep button dose not solve the problem please help ?

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

Maybe you are looking for

  • Save as PDF generates SPLWOW64.EXE error

    Just moved to new Windows 7 box Using Frame v 8.0p236 Have book, used Save as PDF option, click "Set". Get a popup box with big red "X" says: c:\windows\SPLWOW64.EXE Ideas? TIA, Theresa

  • HT4623 Printing from iPad 2 using iOS 6 to Wi-Fi printer

    Need help printing from iPad 2 using iOS 6.0.1 to HP printer.

  • TOC not displaying in translated files

    Using RH8 (HTML). Translating English RH source files using TRADOS TagEditor. Translations to Chinese and Japanese have worked fine. In translations to European languages the TOC does not display in RH nor compiled chm. This appears to be caused by t

  • Selctedcell variant use in abap web dynpro

    hi friends,                 can anybody tell me why we used selectedcell variant in  table column under table in abap webdynpro???? please elaborate with any example if possible. regards, sunil sharma

  • Standard BEX reports

    Hi.,   Can any one tell me the standard Bex reports available in business content for each module. Regards, Sathish