diff --git a/net/seaweedfs/files/pkg-message.in b/net/seaweedfs/files/pkg-message.in index acf69b5ccc85..a54e166d0a70 100644 --- a/net/seaweedfs/files/pkg-message.in +++ b/net/seaweedfs/files/pkg-message.in @@ -1,24 +1,24 @@ [ { type: install message: <&1 | grep -q syslog ; echo $?) if [ ${DAEMON} -eq 0 ]; then : ${seaweedfs_syslog_enable:="NO"} : ${seaweedfs_syslog_priority:="info"} : ${seaweedfs_syslog_facility:="daemon"} if checkyesno seaweedfs_syslog_enable; then seaweedfs_syslog_flags="-T ${name}" if [ -n "${seaweedfs_syslog_priority}" ]; then seaweedfs_syslog_flags="${seaweedfs_syslog_flags} -s ${seaweedfs_syslog_priority}" fi if [ -n "${seaweedfs_syslog_facility}" ]; then seaweedfs_syslog_flags="${seaweedfs_syslog_flags} -l ${seaweedfs_syslog_facility}" fi fi else seaweedfs_syslog_enable="NO" seaweedfs_syslog_flags="" fi pidfile=/var/run/seaweedfs.pid -procname="%%PREFIX%%/sbin/weed" +procname="%%PREFIX%%/bin/weed" command="/usr/sbin/daemon" command_args="-f -t ${name} ${seaweedfs_syslog_flags} -p ${pidfile} ${procname} ${seaweedfs_options}" extra_commands="reload monitor" monitor_cmd=seaweedfs_monitor start_precmd=seaweedfs_startprecmd required_files="${seaweedfs_dir}" seaweedfs_monitor() { sig_reload=USR1 run_rc_command "reload" } seaweedfs_startprecmd() { if [ ! -e ${pidfile} ]; then install -o ${seaweedfs_user} -g ${seaweedfs_group} /dev/null ${pidfile}; fi if [ ! -d ${seaweedfs_dir}/data ]; then install -d -m 0750 -o ${seaweedfs_user} -g ${seaweedfs_group} ${seaweedfs_dir}/data fi if [ ! -d ${seaweedfs_dir}/metadata ]; then install -d -m 0750 -o ${seaweedfs_user} -g ${seaweedfs_group} ${seaweedfs_dir}/metadata fi chdir ${seaweedfs_dir} } run_rc_command "$1" diff --git a/net/seaweedfs/pkg-plist b/net/seaweedfs/pkg-plist index dfc225a24d7b..815b7c1e006e 100644 --- a/net/seaweedfs/pkg-plist +++ b/net/seaweedfs/pkg-plist @@ -1,12 +1,10 @@ @dir(seaweedfs,seaweedfs,750) /var/db/seaweedfs @dir(seaweedfs,seaweedfs,750) /var/log/seaweedfs @comment normally these would auto-populate your etc dir but these generated @comment files contain conflicting options; users must read the wiki first! %%ETCDIR%%/filer.toml.sample %%ETCDIR%%/master.toml.sample %%ETCDIR%%/notification.toml.sample %%ETCDIR%%/replication.toml.sample %%ETCDIR%%/security.toml.sample -@mode 0755 -sbin/weed -@mode +bin/weed