Skip to content

Instantly share code, notes, and snippets.

@0tofu
Last active December 12, 2016 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0tofu/fcae6e4aee37e4cf0955206d4f183080 to your computer and use it in GitHub Desktop.
Save 0tofu/fcae6e4aee37e4cf0955206d4f183080 to your computer and use it in GitHub Desktop.
mackerel-agent start
#!/bin/sh
AGENT_DIR="/jffs/utils/mackerel-agent"
# /etc 以下が再起動の度に初期化されてしまう為、証明書を再配置
mkdir -p /etc/ssl/certs/
cp -p ${AGENT_DIR}/ca-certificates.crt /etc/ssl/certs/
# mackerel-agent 起動
${AGENT_DIR}/mackerel-agent -conf "${AGENT_DIR}/mackerel-agent.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment