Compare commits
3 Commits
master
...
create-rel
| Author | SHA1 | Date |
|---|---|---|
|
|
4385a3e403 | 3 years ago |
|
|
41696770a4 | 3 years ago |
|
|
cb4fdd3d37 | 3 years ago |
3 changed files with 53 additions and 32 deletions
@ -0,0 +1,13 @@ |
||||
#!/bin/bash |
||||
|
||||
set -e |
||||
|
||||
( |
||||
cd cmd/peroxide |
||||
go build |
||||
) |
||||
|
||||
( |
||||
cd cmd/peroxide-cfg |
||||
go build |
||||
) |
||||
@ -0,0 +1,20 @@ |
||||
#!/sbin/openrc-run |
||||
# Copyright 1999-2020 Gentoo Authors |
||||
# Distributed under the terms of the GNU General Public License v2 |
||||
|
||||
CFGFILE="/etc/peroxide/peroxide.conf" |
||||
|
||||
depend() { |
||||
need net |
||||
} |
||||
# TODO: add reload action |
||||
|
||||
description="Peroxide is a proton-mail brigde alternative" |
||||
command=/usr/sbin/peroxide |
||||
command_user="peroxide:peroxide" |
||||
command_args="-config ${CFGFILE}" |
||||
command_background="yes" |
||||
output_log="/var/log/peroxide/peroxide.log" |
||||
error_log="/var/log/peroxide/peroxide.log" |
||||
required_files=${CFGFILE} |
||||
pidfile="/var/run/peroxide.pid" |
||||
Loading…
Reference in new issue