Skip to content

Instantly share code, notes, and snippets.

REM What is the working directory of this script?
REM Reports will be relative to that.
if not exist reports echo "no" && mkdir reports
cd reports
type nul > report.xml
REM this is probably the source of your problem
REM echo ^<?xml version="1.0" encoding="UTF-8"?> >> report.xml
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid