You have new mail in /var/spool/mail/root
[root@centos65-min-template ~]# cd /etc/mosquitto/
[root@centos65-min-template mosquitto]# ll
total 92
-rw-r--r--. 1 root root 230 May 12 12:22 aclfile.example
-rw-r--r--. 1 root root 40301 May 18 09:32 mosquitto.conf
-rw-r--r--. 1 root root 40153 May 12 12:22 mosquitto.conf.example
-rw-r--r--. 1 root root 23 May 12 12:22 pskfile.example
-rw-r--r--. 1 root root 355 May 12 12:22 pwfile.example
[root@centos65-min-template mosquitto]# vim mosquitto.conf
You have new mail in /var/spool/mail/root
[root@centos65-min-template mosquitto]# vim mosquitto.conf
You have new mail in /var/spool/mail/root
[root@centos65-min-template mosquitto]# mosquitto -c /etc/mosquitto/mosquitto.conf
[root@centos65-min-template mosquitto]# mosquitto -c /etc/mosquitto/mosquitto.conf
1527070315: Error: Unable to open log file /var/log/mosquitto.log for writing.
[root@centos65-min-template mosquitto]# cd /var/log/
[root@centos65-min-template log]# ll
total 46104
-rw-------. 1 root root 4459 Jan 5 08:40 anaconda.ifcfg.log
-rw-------. 1 root root 20372 Jan 5 08:40 anaconda.log
-rw-------. 1 root root 38589 Jan 5 08:40 anaconda.program.log
-rw-------. 1 root root 112731 Jan 5 08:40 anaconda.storage.log
-rw-------. 1 root root 61361 Jan 5 08:40 anaconda.syslog
-rw-------. 1 root root 29305 Jan 5 08:40 anaconda.xlog
-rw-------. 1 root root 26490 Jan 5 08:40 anaconda.yum.log
drwxr-x---. 2 root root 4096 May 23 10:16 audit
-rw-r--r--. 2 root root 2879 May 8 03:40 boot.log
-rw-------. 1 root utmp 384 May 9 18:07 btmp
-rw-------. 1 root utmp 384 Mar 26 15:29 btmp-20180508
-rw-------. 1 root root 1786449 May 23 18:12 cron
-rw-------. 1 root root 1015760 Mar 25 03:11 cron-20180325
-rw-------. 1 root root 243781 May 8 12:38 cron-20180508
-rw-------. 1 root root 2273423 May 13 03:36 cron-20180513
-rw-------. 1 root root 3448917 May 20 03:12 cron-20180520
-rw-r--r--. 1 root root 47803 May 8 03:39 dmesg
-rw-r--r--. 1 root root 44623 Apr 15 10:13 dmesg.old
-rw-r--r--. 1 root root 324945 Jan 5 10:01 dracut.log
-rw-r--r--. 1 root root 146584 May 23 17:06 lastlog
-rw-------. 1 root root 7285502 May 23 18:12 maillog
-rw-------. 1 root root 0 Mar 18 03:38 maillog-20180325
-rw-------. 1 root root 94297 May 8 12:37 maillog-20180508
-rw-------. 1 root root 9284820 May 13 03:36 maillog-20180513
-rw-------. 1 root root 14044951 May 20 03:12 maillog-20180520
-rw-------. 1 root root 667 May 23 16:50 messages
-rw-------. 1 root root 412 Mar 23 15:19 messages-20180325
-rw-------. 1 root root 234634 May 8 11:56 messages-20180508
-rw-------. 1 root root 4389 May 12 15:53 messages-20180513
-rw-------. 1 root root 19666 May 20 03:12 messages-20180520
-rw-r--r--. 1 root root 0 May 23 18:11 mosquitto.log
drwxr-xr-x. 2 ntp ntp 4096 Oct 26 2017 ntpstats
-rw-------. 1 root root 13971 May 23 18:11 qemu-ga.log
-rw-r--r--. 1 root root 180 Apr 15 18:17 qga-install.log
-rw-------. 1 root root 1564 May 23 18:06 secure
-rw-------. 1 root root 685674 Mar 25 03:07 secure-20180325
-rw-------. 1 root root 150412 May 8 03:40 secure-20180508
-rw-------. 1 root root 17406 May 12 22:56 secure-20180513
-rw-------. 1 root root 3754 May 18 11:13 secure-20180520
-rw-------. 1 root root 866 May 8 03:39 set-ip.log
-rw-------. 1 root root 0 May 20 03:12 spooler
-rw-------. 1 root root 0 Mar 18 03:38 spooler-20180325
-rw-------. 1 root root 0 Mar 25 03:11 spooler-20180508
-rw-------. 1 root root 0 May 8 12:38 spooler-20180513
-rw-------. 1 root root 0 May 13 03:36 spooler-20180520
-rw-------. 1 root root 32064 May 23 17:06 tallylog
-rw-rw-r--. 1 root utmp 19968 May 23 18:06 wtmp
-rw-rw-r--. 1 root utmp 5657856 May 8 03:40 wtmp-20180508
-rw-------. 1 root root 13175 May 12 12:20 yum.log
[root@centos65-min-template log]# chmod 777 mosquitto.log
You have new mail in /var/spool/mail/root
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
[root@centos65-min-template log]# ll
total 46108
-rw-------. 1 root root 4459 Jan 5 08:40 anaconda.ifcfg.log
-rw-------. 1 root root 20372 Jan 5 08:40 anaconda.log
-rw-------. 1 root root 38589 Jan 5 08:40 anaconda.program.log
-rw-------. 1 root root 112731 Jan 5 08:40 anaconda.storage.log
-rw-------. 1 root root 61361 Jan 5 08:40 anaconda.syslog
-rw-------. 1 root root 29305 Jan 5 08:40 anaconda.xlog
-rw-------. 1 root root 26490 Jan 5 08:40 anaconda.yum.log
drwxr-x---. 2 root root 4096 May 23 10:16 audit
-rw-r--r--. 2 root root 2879 May 8 03:40 boot.log
-rw-------. 1 root utmp 384 May 9 18:07 btmp
-rw-------. 1 root utmp 384 Mar 26 15:29 btmp-20180508
-rw-------. 1 root root 1786449 May 23 18:12 cron
-rw-------. 1 root root 1015760 Mar 25 03:11 cron-20180325
-rw-------. 1 root root 243781 May 8 12:38 cron-20180508
-rw-------. 1 root root 2273423 May 13 03:36 cron-20180513
-rw-------. 1 root root 3448917 May 20 03:12 cron-20180520
-rw-r--r--. 1 root root 47803 May 8 03:39 dmesg
-rw-r--r--. 1 root root 44623 Apr 15 10:13 dmesg.old
-rw-r--r--. 1 root root 324945 Jan 5 10:01 dracut.log
-rw-r--r--. 1 root root 146584 May 23 17:06 lastlog
-rw-------. 1 root root 7285502 May 23 18:12 maillog
-rw-------. 1 root root 0 Mar 18 03:38 maillog-20180325
-rw-------. 1 root root 94297 May 8 12:37 maillog-20180508
-rw-------. 1 root root 9284820 May 13 03:36 maillog-20180513
-rw-------. 1 root root 14044951 May 20 03:12 maillog-20180520
-rw-------. 1 root root 667 May 23 16:50 messages
-rw-------. 1 root root 412 Mar 23 15:19 messages-20180325
-rw-------. 1 root root 234634 May 8 11:56 messages-20180508
-rw-------. 1 root root 4389 May 12 15:53 messages-20180513
-rw-------. 1 root root 19666 May 20 03:12 messages-20180520
-rwxrwxrwx. 1 root root 406 May 23 18:12 mosquitto.log
drwxr-xr-x. 2 ntp ntp 4096 Oct 26 2017 ntpstats
-rw-------. 1 root root 13971 May 23 18:12 qemu-ga.log
-rw-r--r--. 1 root root 180 Apr 15 18:17 qga-install.log
-rw-------. 1 root root 1564 May 23 18:06 secure
-rw-------. 1 root root 685674 Mar 25 03:07 secure-20180325
-rw-------. 1 root root 150412 May 8 03:40 secure-20180508
-rw-------. 1 root root 17406 May 12 22:56 secure-20180513
-rw-------. 1 root root 3754 May 18 11:13 secure-20180520
-rw-------. 1 root root 866 May 8 03:39 set-ip.log
-rw-------. 1 root root 0 May 20 03:12 spooler
-rw-------. 1 root root 0 Mar 18 03:38 spooler-20180325
-rw-------. 1 root root 0 Mar 25 03:11 spooler-20180508
-rw-------. 1 root root 0 May 8 12:38 spooler-20180513
-rw-------. 1 root root 0 May 13 03:36 spooler-20180520
-rw-------. 1 root root 32064 May 23 17:06 tallylog
-rw-rw-r--. 1 root utmp 19968 May 23 18:06 wtmp
-rw-rw-r--. 1 root utmp 5657856 May 8 03:40 wtmp-20180508
-rw-------. 1 root root 13175 May 12 12:20 yum.log
[root@centos65-min-template log]# ps -ef | grep mosquitto
501 66004 1 40 17:07 ? 00:26:22 mosquitto -c /etc/mosquitto/mosquitto.conf -d
root 67295 65971 0 18:13 pts/0 00:00:00 grep mosquitto
[root@centos65-min-template log]# kill -9 66004
[root@centos65-min-template log]# ps -ef | grep mosquitto
root 67299 65971 0 18:13 pts/0 00:00:00 grep mosquitto
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
^CSegmentation fault
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf -d
[root@centos65-min-template ~]# cd /etc/mosquitto/
[root@centos65-min-template mosquitto]# ll
total 92
-rw-r--r--. 1 root root 230 May 12 12:22 aclfile.example
-rw-r--r--. 1 root root 40301 May 18 09:32 mosquitto.conf
-rw-r--r--. 1 root root 40153 May 12 12:22 mosquitto.conf.example
-rw-r--r--. 1 root root 23 May 12 12:22 pskfile.example
-rw-r--r--. 1 root root 355 May 12 12:22 pwfile.example
[root@centos65-min-template mosquitto]# vim mosquitto.conf
You have new mail in /var/spool/mail/root
[root@centos65-min-template mosquitto]# vim mosquitto.conf
You have new mail in /var/spool/mail/root
[root@centos65-min-template mosquitto]# mosquitto -c /etc/mosquitto/mosquitto.conf
1527070286: Error: Unable to open log file /var/log/mosquitto.log for writing.
[root@centos65-min-template mosquitto]# touch /var/log/mosquitto.log[root@centos65-min-template mosquitto]# mosquitto -c /etc/mosquitto/mosquitto.conf
1527070315: Error: Unable to open log file /var/log/mosquitto.log for writing.
[root@centos65-min-template mosquitto]# cd /var/log/
[root@centos65-min-template log]# ll
total 46104
-rw-------. 1 root root 4459 Jan 5 08:40 anaconda.ifcfg.log
-rw-------. 1 root root 20372 Jan 5 08:40 anaconda.log
-rw-------. 1 root root 38589 Jan 5 08:40 anaconda.program.log
-rw-------. 1 root root 112731 Jan 5 08:40 anaconda.storage.log
-rw-------. 1 root root 61361 Jan 5 08:40 anaconda.syslog
-rw-------. 1 root root 29305 Jan 5 08:40 anaconda.xlog
-rw-------. 1 root root 26490 Jan 5 08:40 anaconda.yum.log
drwxr-x---. 2 root root 4096 May 23 10:16 audit
-rw-r--r--. 2 root root 2879 May 8 03:40 boot.log
-rw-------. 1 root utmp 384 May 9 18:07 btmp
-rw-------. 1 root utmp 384 Mar 26 15:29 btmp-20180508
-rw-------. 1 root root 1786449 May 23 18:12 cron
-rw-------. 1 root root 1015760 Mar 25 03:11 cron-20180325
-rw-------. 1 root root 243781 May 8 12:38 cron-20180508
-rw-------. 1 root root 2273423 May 13 03:36 cron-20180513
-rw-------. 1 root root 3448917 May 20 03:12 cron-20180520
-rw-r--r--. 1 root root 47803 May 8 03:39 dmesg
-rw-r--r--. 1 root root 44623 Apr 15 10:13 dmesg.old
-rw-r--r--. 1 root root 324945 Jan 5 10:01 dracut.log
-rw-r--r--. 1 root root 146584 May 23 17:06 lastlog
-rw-------. 1 root root 7285502 May 23 18:12 maillog
-rw-------. 1 root root 0 Mar 18 03:38 maillog-20180325
-rw-------. 1 root root 94297 May 8 12:37 maillog-20180508
-rw-------. 1 root root 9284820 May 13 03:36 maillog-20180513
-rw-------. 1 root root 14044951 May 20 03:12 maillog-20180520
-rw-------. 1 root root 667 May 23 16:50 messages
-rw-------. 1 root root 412 Mar 23 15:19 messages-20180325
-rw-------. 1 root root 234634 May 8 11:56 messages-20180508
-rw-------. 1 root root 4389 May 12 15:53 messages-20180513
-rw-------. 1 root root 19666 May 20 03:12 messages-20180520
-rw-r--r--. 1 root root 0 May 23 18:11 mosquitto.log
drwxr-xr-x. 2 ntp ntp 4096 Oct 26 2017 ntpstats
-rw-------. 1 root root 13971 May 23 18:11 qemu-ga.log
-rw-r--r--. 1 root root 180 Apr 15 18:17 qga-install.log
-rw-------. 1 root root 1564 May 23 18:06 secure
-rw-------. 1 root root 685674 Mar 25 03:07 secure-20180325
-rw-------. 1 root root 150412 May 8 03:40 secure-20180508
-rw-------. 1 root root 17406 May 12 22:56 secure-20180513
-rw-------. 1 root root 3754 May 18 11:13 secure-20180520
-rw-------. 1 root root 866 May 8 03:39 set-ip.log
-rw-------. 1 root root 0 May 20 03:12 spooler
-rw-------. 1 root root 0 Mar 18 03:38 spooler-20180325
-rw-------. 1 root root 0 Mar 25 03:11 spooler-20180508
-rw-------. 1 root root 0 May 8 12:38 spooler-20180513
-rw-------. 1 root root 0 May 13 03:36 spooler-20180520
-rw-------. 1 root root 32064 May 23 17:06 tallylog
-rw-rw-r--. 1 root utmp 19968 May 23 18:06 wtmp
-rw-rw-r--. 1 root utmp 5657856 May 8 03:40 wtmp-20180508
-rw-------. 1 root root 13175 May 12 12:20 yum.log
[root@centos65-min-template log]# chmod 777 mosquitto.log
You have new mail in /var/spool/mail/root
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
[root@centos65-min-template log]# ll
total 46108
-rw-------. 1 root root 4459 Jan 5 08:40 anaconda.ifcfg.log
-rw-------. 1 root root 20372 Jan 5 08:40 anaconda.log
-rw-------. 1 root root 38589 Jan 5 08:40 anaconda.program.log
-rw-------. 1 root root 112731 Jan 5 08:40 anaconda.storage.log
-rw-------. 1 root root 61361 Jan 5 08:40 anaconda.syslog
-rw-------. 1 root root 29305 Jan 5 08:40 anaconda.xlog
-rw-------. 1 root root 26490 Jan 5 08:40 anaconda.yum.log
drwxr-x---. 2 root root 4096 May 23 10:16 audit
-rw-r--r--. 2 root root 2879 May 8 03:40 boot.log
-rw-------. 1 root utmp 384 May 9 18:07 btmp
-rw-------. 1 root utmp 384 Mar 26 15:29 btmp-20180508
-rw-------. 1 root root 1786449 May 23 18:12 cron
-rw-------. 1 root root 1015760 Mar 25 03:11 cron-20180325
-rw-------. 1 root root 243781 May 8 12:38 cron-20180508
-rw-------. 1 root root 2273423 May 13 03:36 cron-20180513
-rw-------. 1 root root 3448917 May 20 03:12 cron-20180520
-rw-r--r--. 1 root root 47803 May 8 03:39 dmesg
-rw-r--r--. 1 root root 44623 Apr 15 10:13 dmesg.old
-rw-r--r--. 1 root root 324945 Jan 5 10:01 dracut.log
-rw-r--r--. 1 root root 146584 May 23 17:06 lastlog
-rw-------. 1 root root 7285502 May 23 18:12 maillog
-rw-------. 1 root root 0 Mar 18 03:38 maillog-20180325
-rw-------. 1 root root 94297 May 8 12:37 maillog-20180508
-rw-------. 1 root root 9284820 May 13 03:36 maillog-20180513
-rw-------. 1 root root 14044951 May 20 03:12 maillog-20180520
-rw-------. 1 root root 667 May 23 16:50 messages
-rw-------. 1 root root 412 Mar 23 15:19 messages-20180325
-rw-------. 1 root root 234634 May 8 11:56 messages-20180508
-rw-------. 1 root root 4389 May 12 15:53 messages-20180513
-rw-------. 1 root root 19666 May 20 03:12 messages-20180520
-rwxrwxrwx. 1 root root 406 May 23 18:12 mosquitto.log
drwxr-xr-x. 2 ntp ntp 4096 Oct 26 2017 ntpstats
-rw-------. 1 root root 13971 May 23 18:12 qemu-ga.log
-rw-r--r--. 1 root root 180 Apr 15 18:17 qga-install.log
-rw-------. 1 root root 1564 May 23 18:06 secure
-rw-------. 1 root root 685674 Mar 25 03:07 secure-20180325
-rw-------. 1 root root 150412 May 8 03:40 secure-20180508
-rw-------. 1 root root 17406 May 12 22:56 secure-20180513
-rw-------. 1 root root 3754 May 18 11:13 secure-20180520
-rw-------. 1 root root 866 May 8 03:39 set-ip.log
-rw-------. 1 root root 0 May 20 03:12 spooler
-rw-------. 1 root root 0 Mar 18 03:38 spooler-20180325
-rw-------. 1 root root 0 Mar 25 03:11 spooler-20180508
-rw-------. 1 root root 0 May 8 12:38 spooler-20180513
-rw-------. 1 root root 0 May 13 03:36 spooler-20180520
-rw-------. 1 root root 32064 May 23 17:06 tallylog
-rw-rw-r--. 1 root utmp 19968 May 23 18:06 wtmp
-rw-rw-r--. 1 root utmp 5657856 May 8 03:40 wtmp-20180508
-rw-------. 1 root root 13175 May 12 12:20 yum.log
[root@centos65-min-template log]# ps -ef | grep mosquitto
501 66004 1 40 17:07 ? 00:26:22 mosquitto -c /etc/mosquitto/mosquitto.conf -d
root 67295 65971 0 18:13 pts/0 00:00:00 grep mosquitto
[root@centos65-min-template log]# kill -9 66004
[root@centos65-min-template log]# ps -ef | grep mosquitto
root 67299 65971 0 18:13 pts/0 00:00:00 grep mosquitto
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf
^CSegmentation fault
[root@centos65-min-template log]# mosquitto -c /etc/mosquitto/mosquitto.conf -d