^(?!.*bar).*foo
(?!.*bar)^.*foo
http://stackoverflow.com/questions/2610581/regex-to-find-a-and-not-b-on-a-line
/etc/systemd/system/redmine.service
[Unit] Description=Redmine server After=syslog.target After=network.target [Service] Type=forking User=redmine Group=redmine ExecStart=/usr/bin/ruby /usr/share/webapps/redmine/script/rails server thin -e production -p 6000 # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 [Install] WantedBy=multi-user.target
install: --no-document
update: --no-document
gem: --no-document