%if 0%{?rhel} >= 7 %systemd_post zerotier-one.service %endif %if 0%{?fedora} >= 21 %systemd_post zerotier-one.service %endif %if 0%{?rhel} <= 6 case "$1" in 1) chkconfig --add zerotier-one ;; 2) chkconfig --del zerotier-one chkconfig --add zerotier-one ;; esac %endif