Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
68a70d11
authored
6 years ago
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openbsd: move to virtualenv
parent
3a730e62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
bootstrap-openbsd.sh
+5
-8
bootstrap/openbsd/pkg-requirements.txt
+1
-1
bootstrap/openbsd/rc.d/agent
+5
-1
requirements.txt
+1
-0
No files found.
bootstrap-openbsd.sh
View file @
68a70d11
...
...
@@ -4,14 +4,6 @@
pkg_add
-z
`
cat
bootstrap/openbsd/pkg-requirements.txt
`
# Necessary symlinks
ln
-sf
/usr/local/bin/pip2.7 /usr/local/bin/pip
#ln -sf /usr/local/bin/python2.7 /usr/local/bin/python
#ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3
#ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config
#ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc
grep
"^cloud:"
/etc/passwd
>
/dev/null
ret
=
$?
if
[
$ret
-ne
0
]
...
...
@@ -32,6 +24,11 @@ then
git clone https://git.ik.bme.hu/circle/agent.git agent
fi
python2
-m
virtualenv /usr/local/virtualenvs/agent
.
/usr/local/virtualenv/agent/bin/activate
pip install
-r
/root/requirements.txt
deactivate
cp bootstrap/openbsd/usr/sbin/mount_circle-userstore /usr/sbin/mount_circle-userstore
cp bootstrap/openbsd/rc.d/agent /etc/rc.d/agent
...
...
This diff is collapsed.
Click to expand it.
bootstrap/openbsd/pkg-requirements.txt
View file @
68a70d11
git
python-2.7
py-
pip
py-
virtualenv
usmb
This diff is collapsed.
Click to expand it.
bootstrap/openbsd/rc.d/agent
View file @
68a70d11
...
...
@@ -2,8 +2,12 @@
#
# $OpenBSD: agent $
daemon
=
"/usr/local/bin/python2.7 /root/agent/agent.py"
daemon
=
". /usr/local/virtualenvs/agent/bin/activate ; python2 /root/agent/agent.py"
daemon_timeout
=
180
.
/etc/rc.d/rc.subr
rc_bg
=
YES
rc_reload
=
NO
rc_cmd
$1
This diff is collapsed.
Click to expand it.
requirements.txt
View file @
68a70d11
zope.interface
==4.6.0
Twisted
==13.2.0
pyserial
==2.7
psutil
==5.4.8
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment