Skip to content

Please add --log and --verbose options #17

Description

Sometimes mpdcron does not work (I'll elaborate in a while). Without --verbose and --log options, it's next to imposible to track what's happening or what certainly is wrong. Please add them, it would be very helpful.
Or, if these are already present, please add note in -h and/or man page and/or mpdcron.conf file.

OK, speaking of my strange behavior, there is a log from console:

minio@pingwin ~ ]:-> mpdcron -k

** (mpdcron:10542): WARNING **: Failed to kill daemon: Operation not permitted
minio@pingwin ~ ]:-> mpdcron 
Daemon already running on PID 2295
minio@pingwin ~ ]:-> ps aux |grep -i 2295
minio    10640  0.0  0.0   7560   880 pts/1    S+   23:07   0:00 grep --colour=auto -i 2295
minio@pingwin ~ ]:-> su -
root@pingwin:~# mpdcron -k
** (mpdcron:10749): DEBUG: Configuration file `/root/.mpdcron/mpdcron.conf' not found, skipping

** (mpdcron:10749): WARNING \*\*: Failed to kill daemon: No such file or directory
root@pingwin:~# exit
logout
minio@pingwin ~ ]:-> mpdcron 
Daemon already running on PID 2295
minio@pingwin ~ ]:-> su -
root@pingwin:~# kill -9 2295
root@pingwin:~# mpdcron 
** (mpdcron:10861): DEBUG: Configuration file `/root/.mpdcron/mpdcron.conf' not found, skipping
Daemon returned 2 as return value
root@pingwin:~# exit
logout
minio@pingwin ~ ]:-> mpdcron 
Process 2295 died: No such process; trying to remove PID file. (/home/minio/.mpdcron/mpdcron.pid)
Daemon returned 0 as return value

I would like to track a reason of this, but mpdcron does not give me any tools :( .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions